Re: Comparing files in a zip to files on drive

2006-12-28 Thread Yu-Xi Lim
kj7ny 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? > You can easily determin

Re: Comparing files in a zip to files on drive

2006-12-28 Thread Tim Williams
On 28 Dec 2006 18:35:15 -0800, kj7ny <[EMAIL PROTECTED]> 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

Re: Comparing files in a zip to files on drive

2006-12-28 Thread Justin Ezequiel
kj7ny wrote: > compare a file on a hard drive to a file in a python created zip file > to tell if the file has changed? >>> fileondisk = r'C:\Documents and Settings\power\Desktop\ES3dc+Template.3f' >>> zipondisk = r'C:\Documents and Settings\power\Desktop\temps.zip' >>> import zipfile >>> z = zipf

Comparing files in a zip to files on drive

2006-12-28 Thread kj7ny
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? -- http://mail.python.org/mailman/listinfo/pyt