Function get_file_stem

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

Returns the file stem of a path.

ยงArguments

  • path - The path to extract the file stem from.

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