Using gzip means you can compress only 1 file per gzip; so you'll have to invent something like tar to put all your files in your directories together into 1 file and then apply gzip on that file to get it compressed...
Using the zipfile module should allow you to create a standard winzip-compatible archive that puts all files directly into 1 compressed archive. cheers, --Tim -- http://mail.python.org/mailman/listinfo/python-list