-
Notifications
You must be signed in to change notification settings - Fork 772
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
Add pathExists() #406
Add pathExists() #406
Conversation
LGTM! 👍 |
I like it, nice work @RyanZim! |
I'm interested in why |
@jaredallard We do promisify |
@RyanZim Yes, I know TL;DR |
Yes; that's the way things currently work. |
This is my approach at resolving #145.
fs.exists
is broken. We're a drop-in replacement forfs
, so we can't fix it.We can make a new method that acts like
fs.exists
should have behaved all along. I've named itpathExists()
.I also aliased
fs.existsSync
tofs.pathExistsSync
for consistency.Example Usage