pub fn file_stem(pathname: &str) -> String
transform to a base name (via Path::file_stem) Note: Perl’s pathname_name returns the stem without extension and without case change.
Path::file_stem