Skip to main content

extract_prefix

Function extract_prefix 

Source
pub fn extract_prefix(
    artifact: &PackArtifact,
    prefix: &str,
    output: &Path,
) -> Result<usize>
Expand description

Extracts files below an artifact prefix into a missing or empty directory.

Returns the number of extracted files.

ยงErrors

Returns an error when the prefix is absent, a path is unsafe, the destination is non-empty, or a filesystem operation fails.