fn resolve(path: &Path) -> PathBufExpand description
Follow symlinks, so writing a symlinked document replaces what it points at —
the way fs::write does. Renaming onto the link would instead replace the
link with a regular file and quietly detach it from its target.