sepia
sepia copied to clipboard
EINVAL error in util.js#touchOnHit()
On Windows with Node v0.12.2 I see an EINVAL error on fs.utimesSync(). I believe the issue is that JavaScript Date.now() returns milliseconds but NodeJS utimesSync expects a Unix timestamp.
I can reproduce this using the following code:
// utimes-test.js
var fs = require('fs');
var now = Date.now();
fs.utimesSync('a.txt', now, now);
console.log("Success!");
c:\sepia-test>echo hello > a.txt c:\sepia-test>node utimes-test.js
@delwyn @salvipriyanka @deepankgupta Are any of you able to integrate the PR and publishing via npm? I'd like to use the library but would like to see this issue fixed.