pub fn resolve(path: &Path) -> Result<PathBuf, AuthError>
Resolve an existing path through symlinks, or resolve its nearest existing ancestor.