pub(crate) fn path_status(path: &Path) -> Result<PathStatus, CliError>
Return a diagnostic status for one path.