aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-08-20 16:32:29 +0200
committerGitHub Enterprise <[email protected]>2024-08-20 16:32:29 +0200
commit6647ae37dba16bc426c69fe6ac80a15c03e15724 (patch)
treea8f2c596a43e068904ab45d8f746db45bf750a03 /src/zencore/filesystem.cpp
parentclose payload file if size mismatch for file cas (#128) (diff)
downloadzen-6647ae37dba16bc426c69fe6ac80a15c03e15724.tar.xz
zen-6647ae37dba16bc426c69fe6ac80a15c03e15724.zip
handle "path not found" as well as "file not found" in directory travers on windows (#129)
Diffstat (limited to 'src/zencore/filesystem.cpp')
-rw-r--r--src/zencore/filesystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zencore/filesystem.cpp b/src/zencore/filesystem.cpp
index e41149d64..d79a39880 100644
--- a/src/zencore/filesystem.cpp
+++ b/src/zencore/filesystem.cpp
@@ -1180,7 +1180,7 @@ FileSystemTraversal::TraverseFileSystem(const std::filesystem::path& RootDir, Tr
if (FAILED(hRes))
{
- if (hRes == ERROR_FILE_NOT_FOUND)
+ if (hRes == ERROR_FILE_NOT_FOUND || hRes == ERROR_PATH_NOT_FOUND)
{
// Directory no longer exist, treat it as empty
return;