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

check if file exists case-sensitive #19

Closed
andyqier88 opened this issue May 18, 2022 · 1 comment
Closed

check if file exists case-sensitive #19

andyqier88 opened this issue May 18, 2022 · 1 comment

Comments

@andyqier88
Copy link

when i use like below, the results are true

import { pathExists } from 'path-exists';

console.log(await pathExists('./readme.md')); // true
console.log(await pathExists('./README.md')); // true

in my boundary-judgment fileExistsWithCaseSync based on check-if-file-exists-case-sensitive

@sindresorhus
Copy link
Owner

If the file system is case-insensitive, the above behavior is correct. I don't think this package should work around that. Even a valid need for this is quite niche, so I'm going to pass on adding an option for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants