Skip to main content

file_name_normalized

Function file_name_normalized 

Source
pub fn file_name_normalized(path: &[u8]) -> Option<&BStr>
Expand description

Return the final non-empty component of an already-normalized virtual path.

A trailing separator is ignored for component extraction, so foo/bar/ has file name bar. The input is assumed to satisfy is_normalized_path; this function does not normalize, validate resource suitability, or interpret host filesystem syntax.