Title: Support providing AbortSignal to the `fs.stat` functions · Issue #57751 · nodejs/node · GitHub
Open Graph Title: Support providing AbortSignal to the `fs.stat` functions · Issue #57751 · nodejs/node
X Title: Support providing AbortSignal to the `fs.stat` functions · Issue #57751 · nodejs/node
Description: What is the problem this feature will solve? Currently fs.stat does not support providing an AbortSignal to fail-fast during teardown, unlike basically all other fs operations What is the feature you are proposing to solve the problem? T...
Open Graph Description: What is the problem this feature will solve? Currently fs.stat does not support providing an AbortSignal to fail-fast during teardown, unlike basically all other fs operations What is the feature y...
X Description: What is the problem this feature will solve? Currently fs.stat does not support providing an AbortSignal to fail-fast during teardown, unlike basically all other fs operations What is the feature y...
Opengraph URL: https://github.com/nodejs/node/issues/57751
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support providing AbortSignal to the `fs.stat` functions","articleBody":"### What is the problem this feature will solve?\n\nCurrently `fs.stat` does not support providing an `AbortSignal` to fail-fast during teardown, unlike basically all other fs operations\n\n### What is the feature you are proposing to solve the problem?\n\nThat the `StatOptions` object have a new field `signal?: AbortSignal` and when that signal emits an `\"abort\"` event the underlying OS FS actions is aborted an the callback parameter of `stat` is called with an `AbortError` and `undefined`.\n\nFuthermore, the async version of `stat` would also support this option but instead would reject the promise with an `AbortError`.\n\n### What alternatives have you considered?\n\nNone, this needs to be implemented within the VM","author":{"url":"https://github.com/Nokel81","@type":"Person","name":"Nokel81"},"datePublished":"2025-04-04T20:21:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/57751/node/issues/57751"}
| 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:666209b9-59a6-0884-1950-a5cb88a487db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A176:3A75DA:212896:2D25BC:6A4C24B0 |
| html-safe-nonce | 19b4863c920e015f703d2dd3861a400a1d8f96bf5f5bfc4a6c6834c7b9c8ec49 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTc2OjNBNzVEQToyMTI4OTY6MkQyNUJDOjZBNEMyNEIwIiwidmlzaXRvcl9pZCI6IjUwMTU0MDE4MjA5Mzk5NzIzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 95b90aa2d797efd695e02866973496f3f95c472a8086459c9a3b9287d7d51da8 |
| hovercard-subject-tag | issue:2973294605 |
| 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/57751/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f50e74aadd8ac36cd5e6eb4e4c061d137e5edfdc351fca9b3556d22f402c820/nodejs/node/issues/57751 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f50e74aadd8ac36cd5e6eb4e4c061d137e5edfdc351fca9b3556d22f402c820/nodejs/node/issues/57751 |
| og:image:alt | What is the problem this feature will solve? Currently fs.stat does not support providing an AbortSignal to fail-fast during teardown, unlike basically all other fs operations What is the feature y... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Nokel81 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| 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 | 9ee13484b32cf23e15fde191da4c9aa47d41201c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width