class documentation

A path pointer that identifies a file contained within a zipfile, which can be accessed by reading that zipfile.

Method __init__ Create a new path pointer pointing at the specified entry in the given zipfile.
Method __repr__ Undocumented
Method __str__ Undocumented
Method file_size Return the size of the file pointed to by this path pointer, in bytes.
Method join Return a new path pointer formed by starting at the path identified by this pointer, and then following the relative path given by fileid. The path components of fileid should be separated by forward slashes, regardless of the underlying file system's path seperator character.
Method open Return a seekable read-only stream that can be used to read the contents of the file identified by this path pointer.
Property entry The name of the file within zipfile that this path pointer points to.
Property zipfile The zipfile.ZipFile object used to access the zip file containing the entry identified by this path pointer.
Instance Variable _entry Undocumented
Instance Variable _zipfile Undocumented
@py3_data
def __init__(self, zipfile, entry=''): (source)

Create a new path pointer pointing at the specified entry in the given zipfile.

does not contain the specified entry.

Raises
IOErrorIf the given zipfile does not exist, or if it
def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

def file_size(self): (source)

Return the size of the file pointed to by this path pointer, in bytes.

Raises
IOErrorIf the path specified by this pointer does not contain a readable file.
def join(self, fileid): (source)

Return a new path pointer formed by starting at the path identified by this pointer, and then following the relative path given by fileid. The path components of fileid should be separated by forward slashes, regardless of the underlying file system's path seperator character.

def open(self, encoding=None): (source)

Return a seekable read-only stream that can be used to read the contents of the file identified by this path pointer.

Raises
IOErrorIf the path specified by this pointer does not contain a readable file.
@property
entry = (source)

The name of the file within zipfile that this path pointer points to.

@property
zipfile = (source)

The zipfile.ZipFile object used to access the zip file containing the entry identified by this path pointer.

Undocumented

_zipfile = (source)

Undocumented