From 874f48f746f6a6a09a7dc0099e8b5a45f0e96b3f Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Tue, 5 Jul 2022 10:26:20 -0400 Subject: [PATCH] doc: add note regarding special case of 0 stat.size Refs: https://github.com/nodejs/node/issues/43669 --- doc/api/fs.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index 167712f1643a8e..fdd63261f4cf1b 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6639,6 +6639,8 @@ 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}