haskell / haskell/filepath

Drop trailing spaces from files in normalise on Windows

Open
#48 13 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
Haskell
Stars
74
Forks
38
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.