Skip to content

Commit b67d1e0

Browse files
OpenGGphated
authored andcommitted
Docs: Notes about precision lost of mtime in 32bit Node.js (#208)
1 parent 8dec27f commit b67d1e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ If they differ and the running process owns the file, the corresponding filesyst
135135
If they don't differ or the process doesn't own the file, the attempt is skipped silently.
136136
__This functionality is disabled on Windows operating systems or any other OS that doesn't support `process.getuid` or `process.geteuid` in node. This is due to Windows having very unexpected results through usage of `fs.fchmod` and `fs.futimes`.__
137137

138+
__Note: The `fs.futimes()` method internally casts `stat.mtime` and `stat.atime` to floats, which causes precision lost in 32bit Node.js.__
139+
138140
If the file has a `symlink` attribute specifying a target path, then a symlink will be created.
139141

140142
__Note: The file will be modified after being written to this stream.__

0 commit comments

Comments
 (0)