aboutsummaryrefslogtreecommitdiff
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
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)
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/zencore/filesystem.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5960d922a..d42748ae9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
- Bugfix: Set last GC time when we skip GC due to low disk space to avoid spam-running GC
- Bugfix: Make sure we lock project and verify directory exists before trying to iterate to find oplogs
- Bugfix: Failure to get size or if size mismatch of a file in filecas now results in overwrite without error report
+- Bugfix: Handle "path not found" error when trying to traverse a directory
## 5.5.4
- Feature: Added new option to zenserver for GC V2
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;