From 6647ae37dba16bc426c69fe6ac80a15c03e15724 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Tue, 20 Aug 2024 16:32:29 +0200 Subject: handle "path not found" as well as "file not found" in directory travers on windows (#129) --- src/zencore/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/zencore/filesystem.cpp') 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; -- cgit v1.2.3