Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EINVAL error in util.js#touchOnHit() #17

Open
mseminatore opened this issue Dec 1, 2016 · 2 comments · Fixed by aneilbaboo/replayer#3
Open

EINVAL error in util.js#touchOnHit() #17

mseminatore opened this issue Dec 1, 2016 · 2 comments · Fixed by aneilbaboo/replayer#3

Comments

@mseminatore
Copy link

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.

@mseminatore
Copy link
Author

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

@mseminatore
Copy link
Author

mseminatore commented Dec 4, 2016

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant