Skip to main content

resolved

Function resolved 

Source
pub fn resolved(pathname: &str) -> String
Expand description

pathname made absolute with every directory that exists named as the file system names it: symbolic links followed and, on Windows, 8.3 short names expanded (RUNNER~1 → runneradmin) and letters cased as stored. The longest existing prefix is resolved and the components that do not exist yet are kept as written, so a directory about to be made resolves like one that is already there. Two paths in this form agree however each was obtained — current_dir, canonicalize, a command-line argument — which a lexical comparison does not: the rc3 Windows release guards compared a destination not yet made, kept lexical (C:/Users/RUNNER~1/…), with the canonical form of its existing parent (C:/Users/runneradmin/…), so an image inside the document’s folder looked outside it.