Uh oh!
There was an error while loading. Please reload this page.
doc: Clarify fs.access works on directories too. - #7113
Conversation
Fixes: #7110 This is maybe more verbose than needed, since the same information is repeated several times. An alternative, maybe a single short sentence at the beginning is better. E.g. > Tests a user's permissions for the file or directory specified by > path. All modes work for either files or directories. `mode` is...
cjihrig
commented
Jun 2, 2016
Could you just change the first sentence to:
As you already did. Then, for |
No need to be so verbose about file vs. directory. They are all just paths.
@cjihrig simplified... Just noticed that my editor trimmed some trailing whitespace. I assume this is not a problem. |
| possible to create a mask consisting of the bitwise OR of two or more values. | ||
| - `fs.constants.F_OK` - File is visible to the calling process. This is useful | ||
| - `fs.constants.F_OK` - Path is visible to the calling process. This is useful |
There was a problem hiding this comment.
Sorry, I meant use path, formatted as code to reference the argument.
cjihrig
commented
Jun 2, 2016
LGTM |
| following constants define the possible values of `mode`. It is possible to | ||
| create a mask consisting of the bitwise OR of two or more values. | ||
| Tests a user's permissions for the file or directory specified by `path`. | ||
| `mode` is an optional integer that specifies the accessibility checks to be |
jasnell
commented
Jun 2, 2016
Small nit, otherwise LGTM |
lance
commented
Jun 6, 2016
cjihrig
commented
Jun 6, 2016
Still LGTM |
jasnell
commented
Jun 6, 2016
Landed in d976d66 |
evanlucas
commented
Jun 16, 2016
This is not landing cleanly on the v6.x branch. @lance would you be interested in opening an additional PR targeting the v6.x branch? |
lance
commented
Jun 16, 2016
@evanlucas will do. A question. It's not clear to me if @jasnell's dcccbfd#diff-acabf706a8aa070a8796e3573f7e4678 is intended to land in v6.x. If so, the docs should refer to |
lance
commented
Jun 16, 2016
evanlucas
commented
Jun 16, 2016
@lance yea, the linked pr is semver-minor so won't be landing until the next semver-minor bump |
Checklist
Affected core subsystem(s)
doc, fs
Description of change
Fixes: #7110
This is maybe more verbose than needed, since the same information is
repeated several times. An alternative, maybe a single short sentence at
the beginning is better. E.g.