Function brane_shr::fs::unarchive_async

source ·
pub async fn unarchive_async(
    tarball: impl AsRef<Path>,
    target: impl AsRef<Path>,
) -> Result<(), Error>
Expand description

Unarchives the given .tar.gz file to the given location.

§Arguments

  • tarball: The source tarball file to extract from.
  • target: The target directory to write to. Note that we will throw all sorts of nasty errors if it already exists somehow.

§Errors

This function errors if we failed to read or write anything or if some directories do or do not exist.