Fix for new bug in GetDirListing, oops

This commit is contained in:
Henrik Rydgård
2021-07-19 20:43:10 +02:00
parent 87dcf60ed0
commit 96406364ca
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -662,8 +662,9 @@ u64 MetaFileSystem::getDirSize(const std::string &dirPath) {
for (auto file : allFiles) {
if (file.name == "." || file.name == "..")
continue;
_assert_(!file.name.empty());
if (file.type == FILETYPE_DIRECTORY) {
result += getDirSize(dirPath + file.name + "/");
result += getDirSize(dirPath + file.name);
} else {
result += file.size;
}