Skip to main content

basename

Function basename 

Source
pub fn basename(p: &str) -> &str
Expand description

Final path component - port of Node’s path.basename. Trailing slashes are trimmed first ("a/b/" -> "b"); a path with no separator returns itself.