On posix, normalizeFolderForComparison unconditionally replaces backslashes with forward slashes. A folder with a literal backslash in its name (dir\x) normalizes to the same string as dir/x, producing a false in-use refusal when both exist.
The fix is to make the backslash-to-slash replacement win32-only. On posix, backslash is a legal filename character and should be left alone.
Found during review of #153 (approved, noted as non-blocking residual).
On posix,
normalizeFolderForComparisonunconditionally replaces backslashes with forward slashes. A folder with a literal backslash in its name (dir\x) normalizes to the same string asdir/x, producing a false in-use refusal when both exist.The fix is to make the backslash-to-slash replacement win32-only. On posix, backslash is a legal filename character and should be left alone.
Found during review of #153 (approved, noted as non-blocking residual).