Re: zipfile: grabbing whole directories

2007-05-01 Thread Daniel Nogradi
> The built in zipfile.write doesn't seem to like taking a directory instead > of a filename. > > for example: > for each in listofdir: > archive.write(each) > > blows up when one of the items listed in listofdir is a subdirectory. > > File "/usr/local/lib/python2.4/zipfile.py",

zipfile: grabbing whole directories

2007-04-30 Thread Dan Thomas-Paquin
Hi, The built in zipfile.write doesn't seem to like taking a directory instead of a filename. for example: for each in listofdir: archive.write(each) blows up when one of the items listed in listofdir is a subdirectory. File "/usr/local/lib/python2.4/zipfile.py", line 405,