I'm writing a backup script that runs through a folder structure and copies any files that have been changed since the last run through. I can detect modifications and creations through the files' properties (using getmtime
and getctime
) but I also need to be able to detect if a file has been moved. Is there a simple way of doing this without having to record the whole file structure and comparing on each update?
Note that this will only be used on a Windows system.
EDIT: If possible I'd like to avoid using external libraries.