Skip to content

Backslash in a Linux folder name normalizes to the same string as its slash twin #155

Description

@Zaldaryon

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions