use flate2::read::GzDecoder;
use std::fs::File; use tar::Archive;
pub fn tar_xvf(filename: String) -> Result<(), Box<dyn std::error::Error>> {
let file = File::open(filename)?;
let decoder = GzDecoder::new(file);
let mut archive = Archive::new(decoder);
archive.unpack(".")?;
Ok(())
}