tarzan 0.3.0

Random-access, seekable .tar.zst archives with an embedded table-of-contents index
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::Path;

use anyhow::Result;
use tarzan::{ExtractOptions, TarzanReader};

pub fn run(archive: &Path, dest: &Path, opts: ExtractOptions, verbose: bool) -> Result<()> {
    let mut reader = TarzanReader::open(archive)?;
    reader.extract_to_dir(dest, &opts, |path| {
        if verbose {
            eprintln!("{path}");
        }
    })?;
    Ok(())
}