Skip to main content

extension

Function extension 

Source
pub fn extension(pathname: &str) -> String
Expand 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.