Split a path into directories with two replaces and a split.
(params, folder, path_string)
| 134 | |
| 135 | |
| 136 | def path_split(params, folder, path_string): |
| 137 | """Split a path into directories with two replaces and a split.""" |
| 138 | if is_abs_path(path_string): |
| 139 | folder = params.root_folder |
| 140 | path_string = path_string[1:] |
| 141 | |
| 142 | components = [s.replace('\0', '/') for s in path_string.replace('//', '\0').split('/')] |
| 143 | return folder, components |
| 144 | |
| 145 | |
| 146 | def try_resolve_path(params, path, find_all_matches=False): |
no test coverage detected