Lines Matching full:zipfile
11 import zipfile
20 zip_obj: The ZipFile object that is being written.
50 """Adds a file to the given ZipFile with a hard-coded modified time.
53 zip_file: ZipFile instance to add the file to.
57 compress: Whether to enable compression. Default is taken from ZipFile
64 if isinstance(zip_path, zipfile.ZipInfo):
68 zipinfo = zipfile.ZipInfo(filename=zip_path)
102 # zipfile will deflate even when it makes the file bigger. To avoid
108 # default passed to the ZipFile constructor.
111 compress_type = zipfile.ZIP_DEFLATED if compress else zipfile.ZIP_STORED
126 output: Path, fileobj, or ZipFile instance to add files to.
149 if not isinstance(output, zipfile.ZipFile):
150 out_zip = zipfile.ZipFile(output, 'w')
180 output: Path, fileobj, or ZipFile instance to add files to.
187 if isinstance(output, zipfile.ZipFile):
192 out_zip = zipfile.ZipFile(output, 'w')
200 with zipfile.ZipFile(in_file, 'r') as in_zip:
218 new_crc = zipfile.crc32(data)
230 compress_entry = info.compress_type != zipfile.ZIP_STORED