pub fn path_last_segment(path: &Path) -> Option<String>
Returns the final path segment as UTF-8 when available.