Skip to main content

root_relative_path

Function root_relative_path 

Source
pub fn root_relative_path(root: &Path, segment: &Path) -> Result<String>
Expand description

segment’s path relative to root’s parent directory — the locator form recorded in manifests. Errors when segment is not under the root directory or is non-UTF-8.