Split a path into directories with two replaces and a split.
(params, folder, path_string)
| 181 | |
| 182 | |
| 183 | def path_split(params, folder, path_string): |
| 184 | """Split a path into directories with two replaces and a split.""" |
| 185 | if is_abs_path(path_string): |
| 186 | folder = params.root_folder |
| 187 | path_string = path_string[1:] |
| 188 | |
| 189 | components = [s.replace('\0', '/') for s in path_string.replace('//', '\0').split('/')] |
| 190 | return folder, components |
| 191 | |
| 192 | |
| 193 | def try_resolve_path(params, path, find_all_matches=False, |
no test coverage detected