Skip to main content

file_extension

Function file_extension 

Source
pub fn file_extension(path: &str) -> String
Expand description

The lowercased extension of path (the part after the last .), or empty when there is none or the only dot is a leading one (a dotfile has no extension).