/// Unpack a .tar.gz archive into the provided location
Unpack a .tar.gz archive into the provided location
Unpack a . tar . gz archive into the provided location
pub fn unpack(archive: &str, dest: &Path) -> std::io::Result<()> {
    let tar_gz =
        File::open(archive).expect(&format!("Unable to unzip the archive {}", archive)[..]);
    let tar = GzDecoder::new(tar_gz);
    let mut archive = Archive::new(tar);
    archive.unpack(dest).unwrap();
    Ok(())
}
pub fn unpack ( archive : & str , dest : & Path ) -> std :: io :: Result < ( ) > { let tar_gz = File :: open ( archive ) . expect ( & format ! ( " " archive ) [ .. ] ) ; let tar = GzDecoder :: new ( tar_gz ) ; let mut archive = Archive :: new ( tar ) ; archive . unpack ( dest ) . unwrap ( ) ; Ok ( ( ) ) }
Unpack a .tar.gz archive into the provided location
Unpack a . tar . gz archive into the provided location
archive
&str
dest
&Path