pub fn extract_zip_if_new(
rt: &mut RustRuntimeServices<'_>,
deps: ExtractZipDeps<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.