AESZipInfo
- class AESZipInfo(*args, **kwargs)[source]
Class with attributes describing each file in the ZIP archive.
Attributes Summary
wz_aes_versionwz_aes_vendor_idwz_aes_strengthCRCcommentcompress_sizecompress_typecreate_systemcreate_versiondate_timeexternal_attrextraextract_versionfile_sizefilenameflag_bitsheader_offsetinternal_attris_compressed_patch_datais_encryptedis_strong_encryptionis_utf_filenameReturn True if filenames are encoded in UTF-8.
orig_filenamereserveduse_datadescripterReturns True if datadescripter is in use.
volumeMethods Summary
Return the per-file header as a string.
Construct an appropriate ZipInfo for a file on the filesystem.
Return True if this archive member is a directory.
If zip64 is required, return encoded extra block and other parameters which may alter the local file header.
Methods Documentation
- FileHeader(zip64=None)
Return the per-file header as a string.
- central_directory()
- datadescripter(zip64)
- decode_extra_zip64(ln, extra, is_central_directory=True)
- encode_datadescripter(zip64, crc, compress_size, file_size)
- classmethod from_file(filename, arcname=None, *, strict_timestamps=True)
Construct an appropriate ZipInfo for a file on the filesystem.
filename should be the path to a file or directory on the filesystem.
arcname is the name which it will have within the archive (by default, this will be the same as filename, but without a drive letter and with leading path separators removed).
- get_dosdate()
- get_dostime()
- is_dir()
Return True if this archive member is a directory.
- zip64_central_header()
- zip64_local_header(zip64, file_size, compress_size)
If zip64 is required, return encoded extra block and other parameters which may alter the local file header.
The local zip64 entry requires that, if the zip64 block is present, it must contain both file_size and compress_size. This is different to the central directory zip64 extra block which requires only fields which need the extra zip64 size be present in the extra block.