Browse Source

doc: add path property to Write/ReadStream in fs.markdown

Documents the "path" property on fs.WriteStream
and fs.ReadStream. See #4327

PR-URL: https://github.com/nodejs/node/pull/4368
Reviewed-By: James M Snell <jasnell@gmail.com>
v4.x
Claudio Rodriguez 9 years ago
committed by Myles Borins
parent
commit
75b0ea85bd
  1. 8
      doc/api/fs.markdown

8
doc/api/fs.markdown

@ -116,6 +116,10 @@ Stop watching for changes on the given `fs.FSWatcher`.
Emitted when the ReadStream's file is opened. Emitted when the ReadStream's file is opened.
### readStream.path
The path to the file the stream is reading from.
## Class: fs.Stats ## Class: fs.Stats
Objects returned from [`fs.stat()`][], [`fs.lstat()`][] and [`fs.fstat()`][] and their Objects returned from [`fs.stat()`][], [`fs.lstat()`][] and [`fs.fstat()`][] and their
@ -196,6 +200,10 @@ Emitted when the WriteStream's file is opened.
The number of bytes written so far. Does not include data that is still queued The number of bytes written so far. Does not include data that is still queued
for writing. for writing.
### writeStream.path
The path to the file the stream is writing to.
## fs.access(path[, mode], callback) ## fs.access(path[, mode], callback)
Tests a user's permissions for the file specified by `path`. `mode` is an Tests a user's permissions for the file specified by `path`. `mode` is an

Loading…
Cancel
Save