Function file_name

Source
pub fn file_name(path: &str) -> &str
Expand description

Last component of a path, extension included.

Recognizes native Windows paths even when reading their catalog on Unix. The original spelling, including verbatim prefixes, is never rewritten.