GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — 7.16.3 ZipInfo Objects

Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 7.16.2 PyZipFile Objects Up: 7.16 zipfile Next: 7.17 readline


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:

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)

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.


Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 7.16.2 PyZipFile Objects Up: 7.16 zipfile Next: 7.17 readline

See About this document... for information on suggesting changes.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.