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