pub fn file_name(path: &Path) -> Option<String>
Retrieves the file name from the given [PathBuf].
PathBuf
This method is lossy in case of invalid UTF-8 characters, see [OsStr::to_string_lossy]
OsStr::to_string_lossy