difficult zipefile Question
danperl at rogers.com
Thu Oct 7 01:08:13 CEST 2004
I'm going to take a break and have dinner. My words are what's on the menu.
"Michael Hoffman" <m.h.3.9.1.without.dots.at.cam.ac.uk at example.com> wrote in
message news:ck1tfn$q64$1 at gemini.csx.cam.ac.uk...
> matthiasjanes wrote:
>> def zipit(path, ziper):
>> for root, dirs, files in os.walk(path):
>> for anyFile in files:
>> fullname = os.path.join(root, anyFile)
> Where is the "ziper" variable used? I don't see how this code does
> anything except create an empty zipfile.
> $ python samplecode.py
> $ unzip test.zip
> Archive: test.zip
> warning [test.zip]: zipfile is empty
> If you Google for <zipfile empty> you will find a python-list thread with
> this solution in it:
> Alternatively you could submit a patch or a bug.
> Michael Hoffman
More information about the Python-list