class documentation

class ZipInfo(object):

Constructor: ZipInfo(filename, date_time)

View In Hierarchy

Class with attributes describing each file in the ZIP archive.

Class Method from_file Construct an appropriate ZipInfo for a file on the filesystem.
Method __init__ Undocumented
Method __repr__ Undocumented
Method FileHeader Return the per-file header as a bytes object.
Method is_dir Return True if this archive member is a directory.
Class Variable __slots__ Undocumented
Instance Variable comment Undocumented
Instance Variable compress_size Undocumented
Instance Variable compress_type Undocumented
Instance Variable create_system Undocumented
Instance Variable create_version Undocumented
Instance Variable date_time Undocumented
Instance Variable external_attr Undocumented
Instance Variable extra Undocumented
Instance Variable extract_version Undocumented
Instance Variable file_size Undocumented
Instance Variable filename Undocumented
Instance Variable flag_bits Undocumented
Instance Variable header_offset Undocumented
Instance Variable internal_attr Undocumented
Instance Variable orig_filename Undocumented
Instance Variable reserved Undocumented
Instance Variable volume Undocumented
Method _decodeExtra Undocumented
Method _encodeFilenameFlags Undocumented
Instance Variable _compresslevel Undocumented
Instance Variable _end_offset Undocumented
@classmethod
def from_file(cls, filename, arcname=None, *, strict_timestamps=True):

Construct an appropriate ZipInfo for a file on the filesystem.

filename should be the path to a file or directory on the filesystem.

arcname is the name which it will have within the archive (by default, this will be the same as filename, but without a drive letter and with leading path separators removed).

def __init__(self, filename='NoName', date_time=(1980, 1, 1, 0, 0, 0)):

Undocumented

def __repr__(self):

Undocumented

def FileHeader(self, zip64=None):

Return the per-file header as a bytes object.

When the optional zip64 arg is None rather than a bool, we will decide based upon the file_size and compress_size, if known, False otherwise.

def is_dir(self):

Return True if this archive member is a directory.

__slots__: tuple[str, ...] =

Undocumented

comment: bytes =

Undocumented

compress_size: int =

Undocumented

compress_type =

Undocumented

create_system: int =

Undocumented

create_version =

Undocumented

date_time =

Undocumented

external_attr: int =

Undocumented

extra: bytes =

Undocumented

extract_version =

Undocumented

file_size: int =

Undocumented

filename =

Undocumented

flag_bits: int =

Undocumented

header_offset =

Undocumented

internal_attr: int =

Undocumented

orig_filename =

Undocumented

reserved: int =

Undocumented

volume: int =

Undocumented

def _decodeExtra(self, filename_crc):

Undocumented

def _encodeFilenameFlags(self):

Undocumented

_compresslevel =

Undocumented

_end_offset =

Undocumented