Skip to main content

split_path

Function split_path 

Source
pub fn split_path(
    input: &str,
    cwd: &Path,
    source: &dyn PathSource,
) -> (String, String, PathBuf)
Expand description

Split a path-typed field into (stem, token, dir_to_list). stem + token reconstructs input except that a trailing slash after a finished directory lives in stem and token is empty.