7.16.3 ZipInfo Objects
Instances of the ZipInfo class are returned by the
getinfo() and infolist() methods of
ZipFile objects. Each object stores information about a
single member of the ZIP archive.
Instances have the following attributes:
ZipInfofilename-
Name of the file in the archive.
ZipInfodate_time-
The time and date of the last modification to to the archive
member. This is a tuple of six values:
| Index | Value |
|---|
0 | Year |
1 | Month (one-based) |
2 | Day of month (one-based) |
3 | Hours (zero-based) |
4 | Minutes (zero-based) |
5 | Seconds (zero-based) |
ZipInfocompress_type-
Type of compression for the archive member.
ZipInfocomment-
Comment for the individual archive member.
ZipInfoextra-
Expansion field data. The
PKZIP Application
Note contains some comments on the internal structure of the data
contained in this string.
ZipInfocreate_system-
System which created ZIP archive.
ZipInfocreate_version-
PKZIP version which created ZIP archive.
ZipInfoextract_version-
PKZIP version needed to extract archive.
ZipInforeserved-
Must be zero.
ZipInfoflag_bits-
ZIP flag bits.
ZipInfovolume-
Volume number of file header.
ZipInfointernal_attr-
Internal attributes.
ZipInfoexternal_attr-
External file attributes.
ZipInfoheader_offset-
Byte offset to the file header.
ZipInfofile_offset-
Byte offset to the start of the file data.
ZipInfoCRC-
CRC-32 of the uncompressed file.
ZipInfocompress_size-
Size of the compressed data.
ZipInfofile_size-
Size of the uncompressed file.