Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 75b0ea8

Browse filesBrowse files
claudiorodriguezMyles Borins
authored andcommitted
doc: add path property to Write/ReadStream in fs.markdown
Documents the "path" property on fs.WriteStream and fs.ReadStream. See #4327 PR-URL: #4368 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f8a676e commit 75b0ea8
Copy full SHA for 75b0ea8

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/fs.markdown‎

Copy file name to clipboardExpand all lines: doc/api/fs.markdown
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ Stop watching for changes on the given `fs.FSWatcher`.
116116

117117
Emitted when the ReadStream's file is opened.
118118

119+
### readStream.path
120+
121+
The path to the file the stream is reading from.
122+
119123
## Class: fs.Stats
120124

121125
Objects returned from [`fs.stat()`][], [`fs.lstat()`][] and [`fs.fstat()`][] and their
@@ -196,6 +200,10 @@ Emitted when the WriteStream's file is opened.
196200
The number of bytes written so far. Does not include data that is still queued
197201
for writing.
198202

203+
### writeStream.path
204+
205+
The path to the file the stream is writing to.
206+
199207
## fs.access(path[, mode], callback)
200208

201209
Tests a user's permissions for the file specified by `path`. `mode` is an

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.