Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs.writeFile writes wrong file case if file already exists on Windows #12521

Closed
jednano opened this issue Apr 19, 2017 · 1 comment
Closed

fs.writeFile writes wrong file case if file already exists on Windows #12521

jednano opened this issue Apr 19, 2017 · 1 comment
Labels
fs Issues and PRs related to the fs subsystem / file system. invalid Issues and PRs that are invalid. windows Issues and PRs related to the Windows platform.

Comments

@jednano
Copy link

jednano commented Apr 19, 2017

  • Version: 7.9.0
  • Platform: Windows 10 Pro

If a file named Foo.js already exists on the file system and you attempt to fs.writeFileSync('foo.js', data), the lowercase foo.js name is not honored. This can and has been causing issues. See Related Issues below.

image

Related issues

@bnoordhuis
Copy link
Member

That's how file names work on Windows. It's not unique to node, you will find that other runtimes and programming languages work the same. It's not even unique to Windows - HFS+ on OS X works the same way.

Closing, not a node bug.

@bnoordhuis bnoordhuis added fs Issues and PRs related to the fs subsystem / file system. invalid Issues and PRs that are invalid. windows Issues and PRs related to the Windows platform. labels Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fs Issues and PRs related to the fs subsystem / file system. invalid Issues and PRs that are invalid. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

2 participants