[−][src]Function sunrise_shell::split_path
pub fn split_path(path: &str) -> (&str, Option<&str>)
Splits a path at the first /
it encounters.
Returns a tuple of the parts before and after the cut.
Notes:
- The rest part can contain duplicates '/' in the middle of the path. This should be fine as you should call split_path to parse the rest part.