pub fn extension(pathname: &str) -> StringExpand description
obtain the extension portion of a pathname (via Path::extension).
Perl’s pathname_type preserves case; callers that need a lowercased
form should apply .to_ascii_lowercase() themselves.