Skip to main content

normalize_mapped_path

Function normalize_mapped_path 

Source
pub fn normalize_mapped_path(
    path: &Path,
    working_dir: &Path,
    mappings: &[PathMapping],
) -> Result<String, PathNormalizationError>
Expand description

Map an absolute path to its cache-key placeholder form.

mappings must already be ordered by PathMapping::ordered. Existing path aliases are resolved while a not-yet-created suffix is preserved.