basename

Function basename 

Source
pub fn basename(path: impl AsRef<Path>) -> String
Expand description

Infallibly compute the base file name from a path.

If no file name is available the returned value is the empty string.