From 1f091a9d6aa8ed49cdde1f45c350bd38ac7c1950 Mon Sep 17 00:00:00 2001 From: Claudio Rodriguez Date: Sun, 20 Dec 2015 14:15:54 -0300 Subject: [PATCH] doc: fs - add path property to Write/ReadStream Documents the "path" property on fs.WriteStream and fs.ReadStream. See #4327 --- doc/api/fs.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 20aef1147f0157..6cd8aa8311e742 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -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 is reading from. + ## Class: fs.Stats Objects returned from `fs.stat()`, `fs.lstat()` and `fs.fstat()` and their @@ -196,6 +200,10 @@ Emitted when the WriteStream's file is opened. The number of bytes written so far. Does not include data that is still queued for writing. +### writeStream.path + +The path to the file the stream is writing to. + ## fs.access(path[, mode], callback) Tests a user's permissions for the file specified by `path`. `mode` is an