Home | History | Annotate | Download | only in python2.7

Lines Matching refs:zip64

26     Raised when writing a zipfile, the zipfile requires ZIP64 extensions
112 # The "Zip64 end of central directory locator" structure, magic number, and size
117 # The "Zip64 end of central directory" record, magic number, size, and indices
160 Read the ZIP64 end-of-archive records and use that to update endrec
165 # If the seek fails, the file is not large enough to contain a ZIP64
179 # Assume no 'zip64 extensible data'
190 # Update the original endrec using data from the ZIP64 record
230 # Try to read the "Zip64 end of central directory" structure
254 # Try to read the "Zip64 end of central directory" structure
329 def FileHeader(self, zip64=None):
344 if zip64 is None:
345 zip64 = file_size > ZIP64_LIMIT or compress_size > ZIP64_LIMIT
346 if zip64:
351 if not zip64:
352 raise LargeZipFile("Filesize would require ZIP64 extensions")
354 # fall back to the ZIP64 extension
403 # ZIP64 extension (large files and/or large archives)
714 allowZip64: if True ZipFile will create files with ZIP64 extensions when
817 # If Zip64 extension structures are present, account for them
1102 raise LargeZipFile("Filesize would require ZIP64 extensions")
1105 raise LargeZipFile("Zipfile size would require ZIP64 extensions")
1154 zip64 = self._allowZip64 and \
1156 self.fp.write(zinfo.FileHeader(zip64))
1182 if not zip64 and self._allowZip64:
1191 self.fp.write(zinfo.FileHeader(zip64))
1228 zip64 = zinfo.file_size > ZIP64_LIMIT or \
1230 if zip64 and not self._allowZip64:
1231 raise LargeZipFile("Filesize would require ZIP64 extensions")
1232 self.fp.write(zinfo.FileHeader(zip64))
1236 fmt = '<LQQ' if zip64 else '<LLL'
1281 # Append a ZIP64 field to the extra's
1325 # Need to write the ZIP64 end-of-archive records