Zippping a directory recursively from Python script on Windows

Max M maxm at mxm.dk
Wed Mar 10 07:56:48 EST 2004


Gerrit Muller wrote:

> did you look at the module zipfile? This seems to be able to everything 
> you describe?


Yes i did. But as I read it, it works on single files only.

But after your posting I found: "7.19 tarfile -- Read and write tar 
archive files"

So I can just create .tar.gz files instead it seems.

That is just dandy.

Maybe that'll teach me to look better the next time.

I should have known that if it is something I need, it is in the library.


thank Max M



More information about the Python-list mailing list