Merge pull request #1435 from Radtoo/master

Support dumping sites larger than 2GB by allowing zip64
This commit is contained in:
ZeroNet 2018-05-23 13:40:07 +02:00 committed by GitHub
commit 4fa48f7940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class ZipStream(file):
def __init__(self, dir_path):
self.dir_path = dir_path
self.pos = 0
self.zf = zipfile.ZipFile(self, 'w', zipfile.ZIP_DEFLATED)
self.zf = zipfile.ZipFile(self, 'w', zipfile.ZIP_DEFLATED, allowZip64 = True)
self.buff = StringIO.StringIO()
self.file_list = self.getFileList()