Function treefmt::expand_path[][src]

#[must_use]
pub fn expand_path(path: &Path, reference: &Path) -> PathBuf

Returns an absolute path. If the path is absolute already, leave it alone. Otherwise join it to the reference path. Then clean all superfluous ../