-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Open
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Description
What is the problem this feature will solve?
For some reason fs.promises.stat is missing the option throwIfNoEntry that was added to fs.stat in version 14/15.
What is the feature you are proposing to solve the problem?
Add the option for parity with the sync version of this function.
What alternatives have you considered?
The only alternative is a try/catch, which creates an annoying scoping issue you have to work around.
It's just surprising, when converting some code from fs.stat to fs.promises.stat and it would seem natural to expect the API to be the same, just async.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Type
Projects
Status
Awaiting Triage