Somehow support checking if a path exists while using fs.promises #39960
Closed as not planned
Description
Is your feature request related to a problem? Please describe.
Presently, fs.exists
is deprecated and fs.existsSync
is only available if you're not using promises
. The exists check is absolutely useful, and it would be really useful to have it available in the fs.promises
API.
Describe the solution you'd like
fs.promises,exists
or fs.promises.existsSync
should work.
Describe alternatives you've considered
- Status Quo: this leaves a weird and very unfortunate gap in our API.