Skip to main content

real_path_resolving

Function real_path_resolving 

Source
pub fn real_path_resolving(path: &str) -> PathBuf
Expand description

Like Git’s strbuf_realpath / test-tool path-utils real_path: resolve symlinks by walking path components (so symlink targets are interpreted at each step), then if the leaf is missing, resolve the longest existing prefix and append the remainder.