Skip to content

Commit 4d5ff25

Browse files
authored
doc: add note regarding special case of 0 stat.size
Refs: nodejs#43669 PR-URL: nodejs#43690 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: LiviaMedeiros <livia@cirno.name>
1 parent 029215d commit 4d5ff25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/fs.md

+3
Original file line numberDiff line numberDiff line change
@@ -6639,6 +6639,9 @@ 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,
6643+
this will be `0`.
6644+
66426645
#### `stats.blksize`
66436646

66446647
* {number|bigint}

0 commit comments

Comments
 (0)