Skip to main content

Module read

Module read 

Source
Expand description

Types for reading ZIP archives

Structs§

Config
Configuration for reading ZIP archives.
ExtractOptions
Extract options
ZipArchive
ZIP archive reader
ZipArchiveMetadata
Immutable metadata about a ZipArchive.
ZipFile
A struct for reading a zip file
ZipFileEntry
A struct for reading a zip file, without a reader
ZipFileEntryWithDataDescriptor
A zip file Entry with a data descriptor (if present).
ZipFileSeek
A struct for reading and seeking a zip file
ZipReadOptions
Options for reading a file from an archive.

Enums§

ArchiveOffset
The offset of the start of the archive from the beginning of the reader.
SymlinkExtractAction
Symlink extract action

Traits§

HasZipMetadata
A trait for exposing file metadata inside the zip.
RootDirFilter
A filter that determines whether an entry should be ignored when searching for the root directory of a Zip archive.

Functions§

read_zipfile_from_stream
Read ZipFile structures from a non-seekable reader.
read_zipfile_from_stream_with_compressed_size
Read ZipFile from a non-seekable reader like read_zipfile_from_stream does, but assume the given compressed size and don’t read any further ahead than that.
read_zipfile_from_stream_with_options
Same as read_zipfile_from_stream but with ZipReadOptions Since LZMA decoding requires the uncompressed length, you will need to override it
root_dir_common_filter
Common filters when finding the root directory of a Zip archive.