diff options
author | B. Stack <bgstack15@gmail.com> | 2022-12-16 21:08:02 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-12-16 21:08:02 -0500 |
commit | d35a4795f16e51f5773d00dce796f6948f82dae2 (patch) | |
tree | b37279f6f8b354407507cc1a0e44691d6c63ffe8 /zen/file_access.cpp | |
parent | add upstream 11.28 (diff) | |
download | FreeFileSync-11.29.tar.gz FreeFileSync-11.29.tar.bz2 FreeFileSync-11.29.zip |
add upstream 11.2911.29
Diffstat (limited to 'zen/file_access.cpp')
-rw-r--r-- | zen/file_access.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zen/file_access.cpp b/zen/file_access.cpp index 01dda68c..0c28f325 100644 --- a/zen/file_access.cpp +++ b/zen/file_access.cpp @@ -200,6 +200,9 @@ void zen::removeDirectoryPlain(const Zstring& dirPath) //throw FileError THROW_LAST_FILE_ERROR(replaceCpy(_("Cannot delete directory %x."), L"%x", fmtPath(dirPath)), "unlink"); return; } + //if (ec == ERROR_SHARING_VIOLATION) => getLockingProcesses() can't handle directory paths! :( RmGetList() fails with ERROR_ACCESS_DENIED + //https://blog.yaakov.online/failed-experiment-what-processes-have-a-lock-on-this-folder/ + throw FileError(replaceCpy(_("Cannot delete directory %x."), L"%x", fmtPath(dirPath)), formatSystemError(functionName, ec)); } /* Windows: may spuriously fail with ERROR_DIR_NOT_EMPTY(145) even though all child items have |