get_filename

Function get_filename 

Source
pub fn get_filename<P>(path: &P) -> Option<&str>
where P: AsRef<Path>,
Expand description

Returns the filename of a path.

ยงArguments

  • path - The path to extract the filename from.

Returns None if the source path terminates in .. or is /.