Skip to content

Commit 64ba157

Browse files
doc: Update doc/api/fs.md
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 6aaaaca commit 64ba157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/fs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3903,7 +3903,7 @@ These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`,
39033903
the numeric values in these objects are specified as `BigInt`s.
39043904
39053905
To be notified when the file was modified, not just accessed, it is necessary
3906-
to compare `curr.mtime.getTime()` and `prev.mtime.getTime()`.
3906+
to compare `curr.mtimeMs` and `prev.mtimeMs`.
39073907
39083908
When an `fs.watchFile` operation results in an `ENOENT` error, it
39093909
will invoke the listener once, with all the fields zeroed (or, for dates, the

0 commit comments

Comments
 (0)