pub struct Archive { /* private fields */ }
Expand description
An Archive contains general information about a zip files, along with a list of entries.
It is obtained via an ArchiveReader, or via a higher-level API like the ReadZip trait.
Implementations§
source§impl Archive
impl Archive
sourcepub fn entries(&self) -> impl Iterator<Item = &StoredEntry>
pub fn entries(&self) -> impl Iterator<Item = &StoredEntry>
Iterate over all files in this zip, read from the central directory.
sourcepub fn by_name<N: AsRef<str>>(&self, name: N) -> Option<&StoredEntry>
pub fn by_name<N: AsRef<str>>(&self, name: N) -> Option<&StoredEntry>
Attempts to look up an entry by name. This is usually a bad idea, as names aren’t necessarily normalized in zip archives.