oven-sh/bun

fs.utimesSync sets the time in seconds (so it seems)

Chiusa

#6804 aperta il 30 ott 2023

 (2 commenti) (0 reazioni) (1 assegnatario)Rust (4486 fork)batch import
buggood first issuenode.js

Metriche repository

Star
 (90.348 stelle)
Metriche merge PR
 (Merge medio 1g 17h) (357 PR mergiate in 30 g)

Descrizione

What version of Bun is running?

1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157

What platform is your computer?

Darwin 21.6.0 x86_64 i386

What steps can reproduce the bug?

fs.utimesSync(pathname, atime, mtime)
console.log(fs.statSync(pathname).mtime.valueOf())

result always ends with "000" with no milliseconds

What is the expected behavior?

mtime should be set precisely

What do you see instead?

tested it also with node v18.17.1 and i get the correct results

Additional information

No response

Guida contributor