Skip to main content

resolve_through_symlinks

Function resolve_through_symlinks 

Source
pub(crate) fn resolve_through_symlinks(path: &Path) -> PathBuf
Expand description

Resolve symlinks in a path, even if the final target doesn’t exist yet. Walks components left-to-right: canonicalizes each prefix that exists on disk, follows symlinks whose targets don’t exist yet, and appends remaining components.