You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mattrenaud opened this issue
Jan 27, 2018
· 2 comments
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.invalidIssues and PRs that are invalid.pathIssues and PRs related to the path subsystem.
/Users/matt/test/dest/dir/file.json is correct. So the case is effecting the result and I would expect the result to be the same on a case insensitive file system.
The text was updated successfully, but these errors were encountered:
bnoordhuis
added
duplicate
Issues and PRs that are duplicates of other issues or PRs.
invalid
Issues and PRs that are invalid.
path
Issues and PRs related to the path subsystem.
labels
Jan 27, 2018
This is a duplicate of several other reports. To summarize: it's working as expected, it's not a bug.
The path module doesn't perform I/O, it manipulates strings. It doesn't know about case (in)sensitivity because that is a property of the file system. It can't know about it either because that would rule out the possibility of constructing paths that don't already exist.
duplicateIssues and PRs that are duplicates of other issues or PRs.invalidIssues and PRs that are invalid.pathIssues and PRs related to the path subsystem.
I have a small demo program to show this issue.
here is the environment:
Here is
index.js
:when I run I get:
Notice
/Users/users
in the path. If I make a change inindex.js
:I get:
/Users/matt/test/dest/dir/file.json
is correct. So the case is effecting the result and I would expect the result to be the same on a case insensitive file system.The text was updated successfully, but these errors were encountered: