Skip to content

doc: add a note about `readStream.path` if `fd` is specified

Rodrigo Muino Tomonari requested to merge github/fork/ylemkimon/patch-1 into master

#40013 changed the behavior of readStream.path, it'll be undefined if fd is specified in fs.createReadStream(). This is not a breaking change as docs state:

If fd is specified, ReadStream will ignore the path argument and will use the specified file descriptor.

However, this would be confusing for those who relied on readStream.path and this PR adds a note about it.

Merge request reports

Loading