From 2694391012596e908465ac427c6409f512e7d835 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index 167712f1643a8e..194bc5b0f527e4 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6639,6 +6639,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}