fn checked_dir(flag: &str, dir: &Path) -> Result<PathBuf>Expand description
A directory the install writes under must be absolute and plain:
no . or .., so joining it under DESTDIR cannot leave DESTDIR,
and no empty segments. The string is checked, not the normalised
components, so /usr/./lib is refused as written rather than
silently cleaned.