[][src]Function oceanpkg::archive::unpack_tarball

pub fn unpack_tarball<R, P>(tarball: R, path: P) -> Result<()> where
    R: Read,
    P: AsRef<Path>, 

Reads tarball as a .tar.gz file and unpacks it to path.

Because GzDecoder uses a buffered reader internally, this is appropriate to call on Files.