pub(crate) fn path_names_to_string(path: &Path) -> String