fn directory_file_name(dirname: &str) -> &str
Return dirname sans final path separator, unless the string consists entirely of separators.