Skip to content

Commit b77e36c

Browse files
ylemkimonAyase-252
authored andcommitted
doc: note readStream.path if fd is specified
it'll be `undefined` if `fd` is specified. Refs: #40013 PR-URL: #40252 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 88e82b8 commit b77e36c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/fs.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5873,7 +5873,8 @@ added: v0.1.93
58735873
The path to the file the stream is reading from as specified in the first
58745874
argument to `fs.createReadStream()`. If `path` is passed as a string, then
58755875
`readStream.path` will be a string. If `path` is passed as a {Buffer}, then
5876-
`readStream.path` will be a {Buffer}.
5876+
`readStream.path` will be a {Buffer}. If `fd` is specified, then
5877+
`readStream.path` will be `undefined`.
58775878
58785879
#### `readStream.pending`
58795880
<!-- YAML

0 commit comments

Comments
 (0)