Reputation: 2587
I have a file that is 12GB and I'd like to compress it in Python 2.7.x.
I tried to do it with this code
shutil.make_archive(output, 'zip', input)
I got back this error
LargeZipFile: Filesize would require ZIP64 extensions
I read the docs and it says
ZIP files that are more than 4 GByte in size require Zip64
How do I apply Zip64 to my file?
Upvotes: 0
Views: 1160
Reputation: 1908
You can try
shutil.make_archive(output, 'zip', input,allowZip64=True)
Upvotes: 1