Skip to content

Commit 874f48f

Browse files
committed
doc: add note regarding special case of 0 stat.size
Refs: nodejs#43669
1 parent b993789 commit 874f48f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/fs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6639,6 +6639,8 @@ A numeric device identifier if the file represents a device.
66396639

66406640
The size of the file in bytes.
66416641

6642+
If the underlying file system does not support getting the size of the file, this will be `0`.
6643+
66426644
#### `stats.blksize`
66436645

66446646
* {number|bigint}

0 commit comments

Comments
 (0)