doc: updates fs doc ( refactors file access constants )#20558
doc: updates fs doc ( refactors file access constants )#20558shobhitchittora wants to merge 4 commits intonodejs:masterfrom
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.
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.
You can use <code></code> here and below.
doc/api/fs.md
Outdated
| <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.
fs.constants.F_OK -> fs.constants.F_OK
There was a problem hiding this comment.
same as above.
|
@nodejs/fs @nodejs/documentation |
doc/api/fs.md
Outdated
| 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.
Also, [`File Access Contants`] -> just [File Access Contants] (as this is not a code)?
doc/api/fs.md
Outdated
| 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.
- 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.
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 |
trivikr
left a comment
There was a problem hiding this comment.
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.
|
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
|
Landed in a76dfd2 |
fs.accessandfs.accessSync.Closes: #20049