Skip to content

Commit

Permalink
Docs: Notes about precision lost of mtime in 32bit Node.js (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenGG authored and phated committed Nov 28, 2017
1 parent 12c5e3d commit d3b3e2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ If they differ and the running process owns the file, the corresponding filesyst
If they don't differ or the process doesn't own the file, the attempt is skipped silently.
__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`.__

__Note: The `fs.futimes()` method internally casts `stat.mtime` and `stat.atime` to floats, which causes precision lost in 32bit Node.js.__

If the file has a `symlink` attribute specifying a target path, then a symlink will be created.

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

0 comments on commit d3b3e2f

Please sign in to comment.