You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2018. It is now read-only.
Node's fs.utimes currently only supports 1-second-resolution time (see fs.c:580), making the round-trip to fs.stat lossy.
It seems we might be able to use the utimes system call instead of utime to get microsecond resolution.
@tjfontainepoints out that you can use fs.futimes as a workaround. However, this still doesn't cover the case where we want to set the time on directories, because mkdir doesn't give us a file descriptor. So now I'm sad about the lack of microsecond resolution.
The text was updated successfully, but these errors were encountered:
Node's
fs.utimes
currently only supports 1-second-resolution time (see fs.c:580), making the round-trip tofs.stat
lossy.It seems we might be able to use the utimes system call instead of utime to get microsecond resolution.
@tjfontaine points out that you can use
fs.futimes
as a workaround. However, this still doesn't cover the case where we want to set the time on directories, becausemkdir
doesn't give us a file descriptor. So now I'm sad about the lack of microsecond resolution.The text was updated successfully, but these errors were encountered: