Added checks for path exist and bin and obj folders when building directory for asset browser

This commit is contained in:
Xiao Qi 2022-11-14 02:52:13 +08:00
parent 557a198367
commit 9e0bc0bbc9
1 changed files with 8 additions and 0 deletions

View File

@ -130,6 +130,14 @@ namespace SHADE
} }
// If item is folder // If item is folder
if (path.stem().string() == "bin"
|| path.stem().string() == "obj"
|| !std::filesystem::exists(path))
{
SHLOG_INFO("[FileSystem] Skipped paths in directory building: {}", path.string());
continue;
}
auto newFolder{ folder->CreateSubFolderHere(path.stem().string()) }; auto newFolder{ folder->CreateSubFolderHere(path.stem().string()) };
folderStack.push(newFolder); folderStack.push(newFolder);
} }