Hi all,
I'm working on a file sync app and what I want to be able to do is update the destination folder when any file is changed in the source folder. I tried using the FileTime() to compare the file dates . The problem is however that when I use copyfile() the new file always has the current time and not the time of the original. So subsequent compare will always flag the original file as a recent update even though it was just updated.
Is there a better way to tackle this problem?
Thanks for all the help.
I'm working on a file sync app and what I want to be able to do is update the destination folder when any file is changed in the source folder. I tried using the FileTime() to compare the file dates . The problem is however that when I use copyfile() the new file always has the current time and not the time of the original. So subsequent compare will always flag the original file as a recent update even though it was just updated.
Is there a better way to tackle this problem?
Thanks for all the help.