-
Notifications
You must be signed in to change notification settings - Fork 774
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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