Unzip nested zip files in python

后端 未结 6 1159
庸人自扰
庸人自扰 2020-12-01 17:07

I am looking for a way to unzip nested zip files in python. For example, consider the following structure (hypothetical names for ease):

  • Folder
    • Zipfi
6条回答
  •  抹茶落季
    2020-12-01 17:40

    Unfortunately decompressing zip files requires random access to the archive, and the ZipFile methods (not to mention the DEFLATE algorithm itself) only provide streams. It is therefore impossible to decompress nested zip files without extracting them.

提交回复
热议问题