Merge pull request #2914 from JosJuice/fix-volumedirectory

Fix VolumeDirectory
This commit is contained in:
Markus Wick 2015-08-26 22:12:23 +02:00
commit 54f882704a
2 changed files with 2 additions and 1 deletions

View File

@ -499,6 +499,7 @@ FSTEntry ScanDirectoryTree(const std::string &directory, bool recursive)
entry = ScanDirectoryTree(physical_name, true);
else
entry.size = 0;
parent_entry.size += entry.size;
}
else
{

View File

@ -58,7 +58,7 @@ namespace File
struct FSTEntry
{
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 virtualName; // Name in FST names table
std::vector<FSTEntry> children;