Skip to main content

extension_normalized

Function extension_normalized 

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

Return the extension of the final component of an already-normalized virtual path, without the dot.

Dotfiles such as .hidden, names ending in ., and paths ending in / have no extension. The input is assumed to satisfy is_normalized_path.