On Thu, 09 Dec 2004 07:42:57 -0800, Scott David Daniels
<[EMAIL PROTECTED]> wrote:
>Look into the two-argument form of the write command:
Well, I should have guessed that, it works. Thanks!
> import zipfile
> archive = zipfile.ZipFile('box.zip', 'w', zipfile.ZIP_DEFLATED)
> archive.
Bulba! wrote:
tried to read file, zip it, and put in the target directory
It works nice, except the zipfile created contains the directory path
of the source file -- which I do NOT want to recreate.
Look into the two-argument form of the write command:
import zipfile
archive = zipfile
Hello everyone,
I'm a newbie to Python, learning it and tried to write the script that
would read file, zip it, and put in the target directory. I used
ZipFile module (code below).
It works nice, except the zipfile created contains the directory path
of the source file -- which I do NOT want to r