Merge pull request #2914 from JosJuice/fix-volumedirectory
Fix VolumeDirectory
This commit is contained in:
commit
54f882704a
|
@ -499,6 +499,7 @@ FSTEntry ScanDirectoryTree(const std::string &directory, bool recursive)
|
||||||
entry = ScanDirectoryTree(physical_name, true);
|
entry = ScanDirectoryTree(physical_name, true);
|
||||||
else
|
else
|
||||||
entry.size = 0;
|
entry.size = 0;
|
||||||
|
parent_entry.size += entry.size;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,7 +58,7 @@ namespace File
|
||||||
struct FSTEntry
|
struct FSTEntry
|
||||||
{
|
{
|
||||||
bool isDirectory;
|
bool isDirectory;
|
||||||
u64 size; // File length or number of entries from children
|
u64 size; // File length, or for directories, recursive count of children
|
||||||
std::string physicalName; // Name on disk
|
std::string physicalName; // Name on disk
|
||||||
std::string virtualName; // Name in FST names table
|
std::string virtualName; // Name in FST names table
|
||||||
std::vector<FSTEntry> children;
|
std::vector<FSTEntry> children;
|
||||||
|
|
Loading…
Reference in New Issue