create_zip_file_system method

create_zip_file_system(, file_name)

File system to provide to the read-only access to speicified zip file or zip stream. File system will be disposed after the open/save operation.

Returns

A zip file system


@staticmethod
def create_zip_file_system(file_name):
    ...
ParameterTypeDescription
file_namestrFile name to the zip file.

Exceptions

ExceptionDescription
IOExceptionThrown when failed to read from stream.

create_zip_file_system(, stream, base_dir)

Create a file system to provide to the read-only access to speicified zip file or zip stream. File system will be disposed after the open/save operation.

Returns

A zip file system


@staticmethod
def create_zip_file_system(stream, base_dir):
    ...
ParameterTypeDescription
streamio.RawIOBaseThe stream to access the zip file
base_dirstrThe base directory inside the zip file.

Remarks

This is a read-only file system, so no write operations are supported.### Exceptions

ExceptionDescription
IOExceptionThrown when failed to read from stream.

See Also