fn resolve_symlink(path: &Path) -> Result<PathBuf>Expand description
Walk a symlink chain to the file it ultimately names, resolving each
relative target against its own link’s parent. Not canonicalize,
which fails on a dangling link: a link whose target is missing should
still resolve, so the write recreates the canonical file rather than
clobbering the link.