[Tutor] zip archive comparison

Baker.Michael Michael.Baker@IGT.com
Mon, 8 Jul 2002 14:11:27 -0700


hi all.

i need to compare two zip archives (created with python) and generate a new
archive containing new or modified files. each archive has the same internal
directory structure (with subdirs). i can easily extract new filenames
through the zipfile module and get date & time through the date_time
attribute, but i don't find a easy way to compare files with like names. i
have used dircmp objects created from the filecp module for directory
comparisons, but i don't find an easy way to check subdirs. i have also used
os.path.getmtime for file-by-file comparisons, but this doesn't help with
subdirs.

is there another module/function that i can use for this??

i need something that handles recursion like os.makedirs, but more like
os.comparedirs :)

thanks in advance