Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: note readStream.path if fd is specified
#40013 changed the behavior of `readStream.path`, it'll be `undefined` if `fd` is specified.
  • Loading branch information
ylemkimon authored Sep 29, 2021
commit 0fbdf070f7671ad079e4ef9601f28bbc6dfa4af7
3 changes: 2 additions & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5873,7 +5873,8 @@ added: v0.1.93
The path to the file the stream is reading from as specified in the first
argument to `fs.createReadStream()`. If `path` is passed as a string, then
`readStream.path` will be a string. If `path` is passed as a {Buffer}, then
`readStream.path` will be a {Buffer}.
`readStream.path` will be a {Buffer}. If `fd` is specified, then
`readStream.path` will be `undefined`.

#### `readStream.pending`
<!-- YAML
Expand Down