tarzan 0.2.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
use std::io;
use std::path::Path;

use anyhow::Result;
use tarzan::TarzanReader;

pub fn run(archive: &Path, target_path: &str) -> Result<()> {
    let mut reader = TarzanReader::open(archive)?;
    let mut stdout = io::stdout().lock();
    reader.extract_member(target_path, &mut stdout)?;
    Ok(())
}