Repository navigation
Major discrepancy in FS constants between the docs and distribution #41590
Description
Activity
The documentation says:
Not every constant will be available on every operating system.
This explains why some constants are in the documentation but not available on Windows.
The red lines in your diff are probably additions that we forgot to document.
Reacted by Benjamin Gruenbaum- addeddocIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
on Jan 19, 2022 Not every constant will be available on every operating system.
Okay, I missed that bit. I'll log a separate feature request for that so the docs are easier to follow in that area.
github-actions commented
on Jun 25, 2026 on Jun 25, 2026 – with GitHub ActionsContributorMore actionsThis issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Jun 25, 2026 github-actions commented
on Jul 26, 2026 on Jul 26, 2026 – with GitHub ActionsContributorMore actionsThis issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.- added a commit that references this issue
on Aug 22, 2026
Version
v16.13.2
Platform
Microsoft Windows NT 10.0.19043.0 x64
Subsystem
fs
Ref: https://nodejs.org/docs/latest-v16.x/api/fs.html#file-access-constants
What steps will reproduce the bug?
Run the following script:
How often does it reproduce? Is there a required condition?
100% of the time
What is the expected behavior?
The following modulo whatever legacy constants there are.
What do you see instead?
Additional information
This represents the following diff (hand-written):