I guess what you really want is recursively archive every file in a
> The built in zipfile.write doesn't seem to like taking a directory instead
> of a filename.
> for example:
> for each in listofdir:
> blows up when one of the items listed in listofdir is a subdirectory.
> File "/usr/local/lib/python2.4/zipfile.py", line 405, in write
> fp = open(filename, "rb")
> is there a mode or a '-r' style param I am missing?