Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix constants usage in fs.access example
  • Loading branch information
cbourgois committed Jul 6, 2021
commit 1197a23893a175260c718e877baf8c3fbed53053
2 changes: 1 addition & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ access(file, constants.W_OK, (err) => {
});

// Check if the file exists in the current directory, and if it is writable.
access(file, constants.F_OK | fs.constants.W_OK, (err) => {
access(file, constants.F_OK | constants.W_OK, (err) => {
if (err) {
console.error(
`${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`);
Expand Down