pub fn resolved_directory_of(pathname: &str) -> StringExpand description
pathname’s directory resolved, its last component kept as written: a file that is itself a symbolic link
keeps its own name, as a copy over it replaces the link and never writes through it.