Title: fs.promises.stat: Missing option throwIfNoEntry · Issue #61116 · nodejs/node · GitHub
Open Graph Title: fs.promises.stat: Missing option throwIfNoEntry · Issue #61116 · nodejs/node
X Title: fs.promises.stat: Missing option throwIfNoEntry · Issue #61116 · nodejs/node
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...
Open Graph 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 ...
X 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 ...
Opengraph URL: https://github.com/nodejs/node/issues/61116
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fs.promises.stat: Missing option throwIfNoEntry","articleBody":"### What is the problem this feature will solve?\n\nFor some reason `fs.promises.stat` is missing the option `throwIfNoEntry` that was added to `fs.stat` in version 14/15.\n\n\n### What is the feature you are proposing to solve the problem?\n\nAdd the option for parity with the sync version of this function.\n\n\n### What alternatives have you considered?\n\nThe only alternative is a `try/catch`, which creates an annoying scoping issue you have to work around.\n\nIt'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.\n","author":{"url":"https://github.com/mindplay-dk","@type":"Person","name":"mindplay-dk"},"datePublished":"2025-12-18T15:55:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/61116/node/issues/61116"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ed10252d-b4d2-0788-3d68-716a6d938f4d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDE4:30AD7C:1CF5CE2:28AEA8C:6A4CC8AD |
| html-safe-nonce | 6096bc689df4cc80af9b4b45cc7cdfc90bff8eaaa2eb9322e8c32164c795f33c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREU0OjMwQUQ3QzoxQ0Y1Q0UyOjI4QUVBOEM6NkE0Q0M4QUQiLCJ2aXNpdG9yX2lkIjoiNTM1NTMxMDcwMDcyMDYwNTM1NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0029cdf322035f63030e270b4271c2a8b04f86251e12847beef26c7b480a9092 |
| hovercard-subject-tag | issue:3743731010 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/61116/issue_layout |
| twitter:image | https://opengraph.githubassets.com/863a6639c94e703b866c4127e9e82b242c33370949d5d6bd3dc780bf803e0f6a/nodejs/node/issues/61116 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/863a6639c94e703b866c4127e9e82b242c33370949d5d6bd3dc780bf803e0f6a/nodejs/node/issues/61116 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mindplay-dk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d0da0eb92994395299ed4450bf67b0373005be36 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width