doc: mention that mode is ignored if file exists

per: https://github.com/joyent/node/issues/6847

Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: https://github.com/joyent/node/pull/25591
This commit is contained in:
James M Snell committed 2015-08-03 20:44:38 -07:00
1 parent 85bcb281e4
commit 418cde0765
1 file changed
+3
+3
View File
@@ -797,6 +797,9 @@ there's no file descriptor leak. If `autoClose` is set to true (default
behavior), on `error` or `end` the file descriptor will be closed
automatically.
`mode` sets the file mode (permission and sticky bits), but only if the
file was created.
An example to read the last 10 bytes of a file which is 100 bytes long:
fs.createReadStream('sample.txt', {start: 90, end: 99});