diff options
author | Richard Lau <riclau@uk.ibm.com> | 2019-02-12 15:39:10 +0000 |
---|---|---|
committer | Richard Lau <riclau@uk.ibm.com> | 2019-02-15 01:55:58 -0500 |
commit | 51d20b6a8f695947a700e7fed8f0e5b33b79cefb (patch) | |
tree | f36e95adcfe96e9748686d4c19beffadd5bc9987 /doc/api/fs.md | |
parent | 8e68dc53b3526f46455c5b094cd8c08e87e22df1 (diff) | |
download | android-node-v8-51d20b6a8f695947a700e7fed8f0e5b33b79cefb.tar.gz android-node-v8-51d20b6a8f695947a700e7fed8f0e5b33b79cefb.tar.bz2 android-node-v8-51d20b6a8f695947a700e7fed8f0e5b33b79cefb.zip |
fs, src, lib: fix `blksize` & `blocks` on Windows
libuv returns values for `blksize` and `blocks` on stat calls so
do not coerce them into `undefined` on Windows.
PR-URL: https://github.com/nodejs/node/pull/26056
Fixes: https://github.com/nodejs/node/issues/25913
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/fs.md')
-rw-r--r-- | doc/api/fs.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/api/fs.md b/doc/api/fs.md index 53a504f3ec..ea983a8c1c 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -3427,8 +3427,7 @@ to compare `curr.mtime` and `prev.mtime`. When an `fs.watchFile` operation results in an `ENOENT` error, it will invoke the listener once, with all the fields zeroed (or, for dates, the -Unix Epoch). In Windows, `blksize` and `blocks` fields will be `undefined`, -instead of zero. If the file is created later on, the listener will be called +Unix Epoch). If the file is created later on, the listener will be called again, with the latest stat objects. This is a change in functionality since v0.10. |