pub fn resolve(path: &Path) -> PathBufExpand description
Resolve path the way a write would reach it: symlinks and .. in the
part that exists are resolved by the file system, and the rest, which a
write would create, is normalised lexically. A dangling symlink is followed
to its target, because a write through it lands there.