mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
create the ZipFile with allowZip64=True. fixes #173
This commit is contained in:
parent
027d77416e
commit
e78e21ac47
@ -101,7 +101,7 @@ class ZipWriter(object):
|
||||
else:
|
||||
self.zip_filename = '{0}/onionshare_{1}.zip'.format(tempfile.mkdtemp(), random_string(4, 6))
|
||||
|
||||
self.z = zipfile.ZipFile(self.zip_filename, 'w')
|
||||
self.z = zipfile.ZipFile(self.zip_filename, 'w', allowZip64=True)
|
||||
|
||||
def add_file(self, filename):
|
||||
self.z.write(filename, os.path.basename(filename), zipfile.ZIP_DEFLATED)
|
||||
|
Loading…
Reference in New Issue
Block a user