I ran into this strange problem recently while writing a test and using lastModified() to check whether file was actually updated or not.. When I try to copy a file
lastModified()