pub async fn unpack(
tar_path: PathBuf,
dest: PathBuf,
opts: UnpackContext,
) -> BoxliteResult<()>Expand description
Unpack a tar archive to dest.
Automatically detects whether to extract as a single file (FileToFile)
or into a directory (IntoDirectory) based on tar contents and dest path,
unless force_directory is set.
Runs blocking I/O on a dedicated thread via spawn_blocking.