Comparing files in a zip to files on drive

Tim Williams tim at tdw.net
Thu Dec 28 22:23:05 EST 2006


On 28 Dec 2006 18:35:15 -0800, kj7ny <kj7ny at nakore.com> wrote:
> I am attempting to incrementally back up files using python.  How can I
> compare a file on a hard drive to a file in a python created zip file
> to tell if the file has changed?  Or should I be using some other
> method to determine if a file has changed?

If you are running on an extended FAT or an NTFS filesytem you can
utilise a file's archive attribute. It is set when a file is opened
for modifying.

See the following description of how a backup product describes the process

http://www.grigsoft.com/wndsync/help/sources/abit.htm



-- 

Tim Williams



More information about the Python-list mailing list