pub fn real_path_resolving(path: &str) -> PathBufExpand 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.