pub fn resolve(path: &Path) -> PathBuf
Resolve symlinks in the longest existing prefix and append the rest, so a path that does not exist yet is still judged by where its existing parents really are.