PyDocs

Nav

Data Compression and Archiving

ZipInfo

zipfile

class (source)
  • ZipInfo(filename='NoName', date_time=(1980, 1, 1, 0, 0, 0))
Class with attributes describing each file in the ZIP archive.
Changed in 3.13
  • 3.13: A public compress_level attribute has been added to expose the formerly protected _compresslevel. The older protected name continues to work as a property for backwards compatibility.
Members of ZipInfo

_

_for_archive
Resolve suitable defaults from the archive.

c

comment
Comment for the individual archive member as a bytes object.
compress_size
Size of the compressed data.
compress_type
Type of compression for the archive member.
CRC
CRC-32 of the uncompressed file.
create_system
System which created ZIP archive.
create_version
PKZIP version which created ZIP archive.

d

date_time
The time and date of the last modification to the archive member.

e

external_attr
External file attributes.
extra
Expansion field data.
extract_version
PKZIP version needed to extract archive.

f

file_size
Size of the uncompressed file.
filename
Name of the file in the archive.
flag_bits
ZIP flag bits.
from_file
Construct an appropriate ZipInfo for a file on the filesystem.

h

header_offset
Byte offset to the file header.

i

internal_attr
Internal attributes.
is_dir
Return True if this archive member is a directory.

r

reserved
Must be zero.

v

volume
Volume number of file header.
0 Examples
No examples for zipfile/ZipInfo.
See Also
No see-alsos for zipfile/ZipInfo
0 Notes
No notes for ZipInfo