pub fn extract_tar_bz2_if_new(
rt: &mut RustRuntimeServices<'_>,
deps: ExtractTarBz2Deps<VarClaimed>,
file: &Path,
file_version: &str,
) -> Result<PathBuf>
Expand description
Extracts the given file
into persistent_dir
(or into
std::env::current_dir()
, if no persistent dir is available).
To avoid redundant unzips between pipeline runs, callers must provide a
file_version
string that identifies the current file. If the previous run
already unzipped a zip with the given file_version
, this function will
return nearly instantaneously.