ModTime changed?

Hello,
I have a function that copy a file and display the modTime of the copied file:
copy(src, dest)
println(getModTime(dest))

If I try and get the modTime later, it changed… but the file doesn’t.
Call println(getModTime(dest)) gives another result…
It keeps the same modTime if I put a sleep between copy and println.

copy(src, dest)
sleep(1 sec)
println(getModTime(dest))

Do you know why?
PS: under Linux

Hi. I think it is the diskcache which isn’t completely written to disk then you ask for the moddate without the pause.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.