From a8980b2468ddfe8487dc9f0f4cfb03289140585b Mon Sep 17 00:00:00 2001 From: Douglas Wilson <67512+dougwilson@users.noreply.github.com> Date: Tue, 5 Jul 2022 16:26:48 -0400 Subject: [PATCH] doc: add note regarding special case of 0 stat.size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/issues/43669 PR-URL: https://github.com/nodejs/node/pull/43690 Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Juan José Arboleda Reviewed-By: LiviaMedeiros --- doc/api/fs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index 3969d5d6f8282a..e4f71d257ae7fb 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6341,6 +6341,9 @@ A numeric device identifier if the file represents a device. The size of the file in bytes. +If the underlying file system does not support getting the size of the file, +this will be `0`. + #### `stats.blksize` * {number|bigint}