From 5d79eb6a2f4ebb56559b27757d7476bc6c514c9f Mon Sep 17 00:00:00 2001 From: opengg Date: Thu, 6 Jul 2017 17:42:03 +0800 Subject: [PATCH] Docs: Notes about precision lost of `mtime` in 32bit Node.js (#208) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6c4714a0..25915ecc 100644 --- a/README.md +++ b/README.md @@ -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.__