-
Notifications
You must be signed in to change notification settings - Fork 29.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: fs - add path property to Write/ReadStream #4368
doc: fs - add path property to Write/ReadStream #4368
Conversation
@@ -116,6 +116,10 @@ Stop watching for changes on the given `fs.FSWatcher`. | |||
|
|||
Emitted when the ReadStream's file is opened. | |||
|
|||
### readStream.path | |||
|
|||
The path to the file the stream will read from. |
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.
Just a bit suggestion: How about changing the will read from
to is reading from
, in my opinion, the -ing
might be more exact for doing express streams. The same to below writeStream.path
:-)
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.
@yorkie I was on the fence about that one, considering the situations where you'd want to check "path", but I'll defer to your opinion since it matches consistency
Documents the "path" property on fs.WriteStream and fs.ReadStream. See nodejs#4327
90cc7f5
to
1f091a9
Compare
A major reworking of the fs.markdown structure and text. Moved things around so that they are organized by function, included additional information so there is less of dependency on knowledge of the POSIX API. Other changes: * Documents `.path` on `fs.ReadStream` and `fs.WriteStream` per nodejs#4368 * Include coverage of the file system encoding issue * Example enhancements throughout
LGTM |
Documents the "path" property on fs.WriteStream and fs.ReadStream. See #4327 PR-URL: #4368 Reviewed-By: James M Snell <[email protected]>
Landed in 310530b |
Documents the "path" property on fs.WriteStream and fs.ReadStream. See #4327 PR-URL: #4368 Reviewed-By: James M Snell <[email protected]>
Documents the "path" property on fs.WriteStream and fs.ReadStream. See #4327 PR-URL: #4368 Reviewed-By: James M Snell <[email protected]>
Documents the "path" property on fs.WriteStream and fs.ReadStream. See #4327 PR-URL: #4368 Reviewed-By: James M Snell <[email protected]>
Documents the "path" property on fs.WriteStream and fs.ReadStream. See nodejs#4327 PR-URL: nodejs#4368 Reviewed-By: James M Snell <[email protected]>
Documents the "path" property on fs.WriteStream and fs.ReadStream. See nodejs#4327 PR-URL: nodejs#4368 Reviewed-By: James M Snell <[email protected]>
Documents the "path" property on fs.WriteStream and fs.ReadStream. See nodejs#4327 PR-URL: nodejs#4368 Reviewed-By: James M Snell <[email protected]>
Documents the "path" property on fs.WriteStream
and fs.ReadStream. See #4327