From ede444811b47b69b14928cf069126f2f11d60467 Mon Sep 17 00:00:00 2001 From: Wirlaburla Date: Tue, 31 Dec 2024 15:41:06 -0600 Subject: [PATCH] Use fs::remove_all instead of fs::remove on deleteFile --- src/plugins/filer_local/filer_local.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/filer_local/filer_local.cpp b/src/plugins/filer_local/filer_local.cpp index 11897e3..900eac0 100644 --- a/src/plugins/filer_local/filer_local.cpp +++ b/src/plugins/filer_local/filer_local.cpp @@ -207,7 +207,7 @@ public: return fd; } - if (!fs::remove(resolved)) { + if (fs::remove_all(resolved) == 0) { fd.error = file_error{FilerStatusCodes::NoPermission, "Unable to delete file"}; } } catch (const std::filesystem::filesystem_error& ex) {