Skip to main content

get_path_slice

Function get_path_slice 

Source
pub fn get_path_slice(path: &str) -> Vec<&str>
Expand description

Removes empty elements from a path, which is important due to double slashes. This returns a vector of the path’s components;