Yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/zipinfo-objects.html
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:
- filename
- Name of the file in the archive.
- date_time
- The time and date of the last modification to to the archive member. This is a tuple of six values: {| style="border-collapse: collapse" border="border" align="center"
|- class="tableheader"
! align="center" | Index
! align="left" | Value
| align="center" valign="baseline" | 0
| align="left" | Year
|-
| align="center" valign="baseline" | 1
| align="left" | Month (one-based)
|-
| align="center" valign="baseline" | 2
| align="left" | Day of month (one-based)
|-
| align="center" valign="baseline" | 3
| align="left" | Hours (zero-based)
|-
| align="center" valign="baseline" | 4
| align="left" | Minutes (zero-based)
|-
| align="center" valign="baseline" | 5
| align="left" | Seconds (zero-based)
|}
- compress_type
- Type of compression for the archive member.
- comment
- Comment for the individual archive member.
- extra
- Expansion field data. The PKZIP Application Note ] contains some comments on the internal structure of the data contained in this string.
- create_system
- System which created ZIP archive.
- create_version
- PKZIP version which created ZIP archive.
- extract_version
- PKZIP version needed to extract archive.
- reserved
- Must be zero.
- flag_bits
- ZIP flag bits.
- volume
- Volume number of file header.
- internal_attr
- Internal attributes.
- external_attr
- External file attributes.
- header_offset
- Byte offset to the file header.
- file_offset
- Byte offset to the start of the file data.
- CRC
- CRC-32 of the uncompressed file.
- compress_size
- Size of the compressed data.
- file_size
- Size of the uncompressed file.
See About this document... for information on suggesting changes.