Skip to content

Drop trailing spaces from files in normalise on Windows #48

Open
@ndmitchell

Description

@ndmitchell
writeFile "foo    " ""
writeFile "bar" ""
doesFileExist "foo" -- True
doesFileExist "foo   " -- True
doesFileExist "bar   " -- True

Seemingly any trailing spaces in a path are ignored by Windows. Note that directories behave the same way if they are the last argument, but if you add a path separator, then they don't get their spaces removed. Very weird.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions