This project is read-only.

Zipping a zipped file

Jul 21, 2011 at 8:36 PM

So I have a function that takes a list of files and zips them up. Sometimes, one of the files may already be zipped. Based on the tests

that I've done, zipping a zipped file (with default compression level) doesnt seem to hurt anything.. the final compressed file is even smaller than it was,

but it unzips just fine and all of the data appears to be fine. But I just want to make sure.... Cheeso, should I be fine doing this?


Thanks =)

Jul 21, 2011 at 9:28 PM

You're fine zipping a zip file.

If you zip a zip file, you may see a slight compression, but maybe not.  In any case you will never lose information by repeatedly nesting zips.