1 2 3 4 5
use std::path::{Path, PathBuf}; pub fn resolve_symlink(path: &Path) -> PathBuf { path.canonicalize().unwrap_or(path.to_path_buf()) }