-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
expected behaviour of fs.constants.W_OK
#17508
Comments
Documentation PR welcome. For inspiration, check out http://man7.org/linux/man-pages/man2/access.2.html. Of specific interest here:
|
upon further reading, I believe the issue I'm facing is due checking whether the file path is writable, instead of checking if the file's directory is writable. in that context, technically the docs are correct, however, some examples would help. I'll take a stab at improving the examples |
I'm going to reopen this, because I agree that those docs could be improved. If you or anyone else makes a PR for the docs, then we can close this. |
Hi, I've tried improving the documentation of fs.access, take a look at my pull request #17578. Thanks |
#17578 was never landed but has enough content in for a first timer to pick and progress. |
Hi |
sure, please go ahead. |
7.x
,8.x
,9.x
according to the documentation:
the description text reads as agnostic to the behaviour of the
path
existing or not, however in practice, this only works if thepath
exists:results in:
I am not certain if the intended functionality is what's accurately described, meaning this is a technical bug, or if the description is lacking in clarity.
Happy to help address either through PR, I believe this is a documentation problem, so wanted to be sure before.
The text was updated successfully, but these errors were encountered: