Movatterモバイル変換


[0]ホーム

URL:


Previous PageUp One LevelNext PagePython Library ReferenceContentsModule IndexIndex
Previous:7.15.2 PyZipFile ObjectsUp:7.15 zipfileNext:7.16 readline

 
7.15.3 ZipInfo Objects

Instances of theZipInfo class are returned by thegetinfo() andinfolist() methods ofZipFile objects. Each object stores information about asingle 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 
0Year
1Month (one-based)
2Day of month (one-based)
3Hours (zero-based)
4Minutes (zero-based)
5Seconds (zero-based)

compress_type
Type of compression for the archive member.

comment
Comment for the individual archive member.

extra
Expansion field data. ThePKZIP 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 PageUp One LevelNext PagePython Library ReferenceContentsModule IndexIndex
Previous:7.15.2 PyZipFile ObjectsUp:7.15 zipfileNext:7.16 readline
Release 2.2.3, documentation updated on 30 May 2003.
SeeAbout this document... for information on suggesting changes.
[8]ページ先頭

©2009-2026 Movatter.jp