Skip to main content

root_path

Function root_path 

Source
pub fn root_path(cwd: &Path, path: &Path) -> PathBuf
Expand description

The root a --dag-path names: the path as given (its . components dropped), as the variable’s entries are, so a rename in [dags.roots] matches it; only a path with no name of its own is resolved: . is cwd, and one ending in .. its real path on the filesystem (a lexical .. would be wrong past a symbolic link; a missing one is left, and refused unnamed).