-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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: document opening hidden files on Windows #15409
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,6 +102,11 @@ example `fs.readdirSync('c:\\')` can potentially return a different result than | |
`fs.readdirSync('c:')`. For more information, see | ||
[this MSDN page][MSDN-Rel-Path]. | ||
|
||
*Note:* On Windows opening existing hidden file using the `w` flag (either | ||
through `fs.open` or `fs.writeFile`) will fail with `EPERM`. You can work | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A nit: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be either There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please avoid the use of informal pronouns like |
||
around this by opening the file with the `a` flag and then using `fs.ftruncate` | ||
to clear the file contents. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does |
||
|
||
## Threadpool Usage | ||
|
||
Note that all file system APIs except `fs.FSWatcher()` and those that are | ||
|
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.
nit: comma after
On Windows