16

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

Dharman
  • 30,962
  • 25
  • 85
  • 135
maxim
  • 583
  • 2
  • 5
  • 13

1 Answers1

31

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.

Adrien Plisson
  • 22,486
  • 6
  • 42
  • 73