-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: updates fs doc ( refactors file access constants ) #20558
doc: updates fs doc ( refactors file access constants ) #20558
Conversation
1. removed extra mode constants doc 2. creates bookmark to the common File Access Contants block. Closes: nodejs#20049
doc/api/fs.md
Outdated
<td>Flag indicating that the file is visible to the calling process.</td> | ||
<td>Flag indicating that the file is visible to the calling process. | ||
This is useful for determining if a file exists, but says nothing | ||
about rwx permissions. Default if no mode is specified.</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rwx -> rwx
mode -> mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @trivikr. I don't think markdown highlight `` will work inside HTML tags. Refer - https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#inline-html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use <code></code>
here and below.
doc/api/fs.md
Outdated
@@ -4343,7 +4330,8 @@ The following constants are meant for use with [`fs.access()`][]. | |||
<tr> | |||
<td><code>X_OK</code></td> | |||
<td>Flag indicating that the file can be executed by the calling | |||
process.</td> | |||
process. This has no effect on Windows | |||
(will behave like fs.constants.F_OK).</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fs.constants.F_OK -> fs.constants.F_OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above.
@nodejs/fs @nodejs/documentation |
doc/api/fs.md
Outdated
@@ -746,18 +746,11 @@ changes: | |||
|
|||
Tests a user's permissions for the file or directory specified by `path`. | |||
The `mode` argument is an optional integer that specifies the accessibility | |||
checks to be performed. The following constants define the possible values of | |||
checks to be performed. Check | |||
[`File Access Contants`](#fs_file_access_constants) for possible values of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contants -> Constants
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, [`File Access Contants`]
-> just [File Access Contants]
(as this is not a code)?
doc/api/fs.md
Outdated
@@ -891,18 +884,10 @@ changes: | |||
|
|||
Synchronously tests a user's permissions for the file or directory specified by | |||
`path`. The `mode` argument is an optional integer that specifies the | |||
accessibility checks to be performed. The following constants define the | |||
accessibility checks to be performed. Check [`File Access Contants`](#fs_file_access_constants) for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Contants -> Constants
- This line needs to be wrapped at 80 characters. Or you can create a bottom reference and use
[File Access Constants][]
.
doc/api/fs.md
Outdated
<td>Flag indicating that the file is visible to the calling process.</td> | ||
<td>Flag indicating that the file is visible to the calling process. | ||
This is useful for determining if a file exists, but says nothing | ||
about rwx permissions. Default if no mode is specified.</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use <code></code>
here and below.
There is one more repetition in the |
1. use <code> tag 2. bottom bookmark for File Access Constants 3. typo fix Closes: nodejs#20049
@vsemozhetbyt done for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified the update in private branch
* `fs.constants.W_OK` - `path` can be written by the calling process. | ||
* `fs.constants.X_OK` - `path` can be executed by the calling process. This has | ||
no effect on Windows (will behave like `fs.constants.F_OK`). | ||
checks to be performed. Check [File Access Constants][] for possible values |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
Landed in a76dfd2 |
fs.access
andfs.accessSync
.Closes: #20049