pub fn resolve(path: &Path) -> PathBufExpand description
Resolve path the way a write would reach it: each component that exists
is resolved by the file system, one at a time, so a symlink after a ..
is resolved too, and the rest, which a write would create, is kept as
written. A dangling symlink is followed to its target, because a write
through it lands there. When a component cannot be read, the path is
normalised from its longest existing part.