diff options
author | James M Snell <jasnell@gmail.com> | 2015-06-23 20:59:56 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2015-08-03 20:44:38 -0700 |
commit | 418cde076549a8d5197755cef451b3d845f21d5e (patch) | |
tree | 208ff27a3c263a992cea96b56c89dbf4223d10db /doc/api | |
parent | 85bcb281e482cda82c49f4d81981d654017b8f23 (diff) | |
download | node-418cde076549a8d5197755cef451b3d845f21d5e.tar.gz |
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
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/fs.markdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 4c0f9bf7e..6898a9e1b 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -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}); |