I'd like to get a file last modified time in Delphi.
Normally something like FileAge()
would do the trick, only the problem is: if I overwrite *File A* with File B using CopyFile
, File A's modified date is not updated with current overwrite time as it should(?)
I get that: CopyFile
also copy file attributes, but I really need to get the modified date that also works when a file is overwritten.
Is there such function? My whole application relies on modification time to decide whether or not I should proceed with files!
EDIT Just to clarify: I'm only monitoring the files. It's not my application who's modifying them.