pub struct ExtractOptions {
pub strip_components: usize,
pub excludes: Vec<String>,
pub includes: Vec<String>,
pub restore_mtime: bool,
pub skip_bad_chunks: bool,
}Expand description
Options controlling TarzanReader::extract_to_dir.
Fields§
§strip_components: usizeNumber of leading path components to drop from each member, like
tar --strip-components=N. Members with too few components after
the strip are skipped.
excludes: Vec<String>Shell-glob patterns; matching members are skipped.
includes: Vec<String>If non-empty, only members matching at least one pattern by exact path, directory-prefix, or shell-glob are extracted.
restore_mtime: boolRestore each member’s recorded mtime. When false, extracted entries keep whatever timestamp the filesystem assigns at creation. Defaults to true.
skip_bad_chunks: boolIf a regular-file member fails to extract because of a corrupted data chunk (zstd decode error, unexpected EOF mid-frame, …), log a warning and continue with the remaining members rather than aborting the whole extraction. Defaults to false.
Trait Implementations§
Source§impl Clone for ExtractOptions
impl Clone for ExtractOptions
Source§fn clone(&self) -> ExtractOptions
fn clone(&self) -> ExtractOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more