Skip to content
Advertisement

Python zipfile module: difference between zipfile.ZIP_DEFLATED and zipfile.ZIP_STORED

I have difficulty understanding the difference between zipfile.ZIP_DEFLATED and zipfile.ZIP_STORED compression modes of the zipfile module.

Advertisement

Answer

ZIP_DEFLATED correspond to an archive member (a file inside the archive) which is compressed (or deflated). ZIP_STORED correspond to an archive member which is simply stored, without being compressed, quite the same as an archive member inside a tar file.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement