Function compress_tools::uncompress_archive[][src]

pub fn uncompress_archive<R>(
    source: R,
    dest: &Path,
    ownership: Ownership
) -> Result<()> where
    R: Read + Seek
Expand description

Uncompress an archive using source as a reader and dest as the destination directory.

Example

use compress_tools::*;
use std::fs::File;
use std::path::Path;

let mut source = File::open("tree.tar.gz")?;
let dest = Path::new("/tmp/dest");

uncompress_archive(&mut source, &dest, Ownership::Preserve)?;