difficult zipefile Question
m.h.3.9.1.without.dots.at.cam.ac.uk at example.com
Thu Oct 7 01:01:07 CEST 2004
> 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
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.
More information about the Python-list