Function file_name

Source
pub fn file_name(path: &Path) -> Option<String>
Expand description

Retrieves the file name from the given [PathBuf].

This method is lossy in case of invalid UTF-8 characters, see [OsStr::to_string_lossy]