Fix for new bug in GetDirListing, oops

This commit is contained in:
Henrik Rydgård committed 2021-07-19 20:43:10 +02:00
1 parent 87dcf60ed0
commit 96406364ca
2 files changed
+3 -1

No files matched your search

+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;
}