Skip to content

Commit 60b4239

Browse files
committed
doc: mention that mode is ignored if file exists
per: nodejs/node-v0.x-archive#6847 Reviewed-By: James M Snell <[email protected]> PR-URL: nodejs/node-v0.x-archive#25591
1 parent b259be7 commit 60b4239

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/fs.markdown

+3
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,9 @@ there's no file descriptor leak. If `autoClose` is set to true (default
823823
behavior), on `error` or `end` the file descriptor will be closed
824824
automatically.
825825

826+
`mode` sets the file mode (permission and sticky bits), but only if the
827+
file was created.
828+
826829
An example to read the last 10 bytes of a file which is 100 bytes long:
827830

828831
fs.createReadStream('sample.txt', {start: 90, end: 99});

0 commit comments

Comments
 (0)