mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-01 17:56:44 -04:00
create the ZipFile with allowZip64=True. fixes #173
This commit is contained in:
parent
027d77416e
commit
e78e21ac47
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue