Replacement for os.path.split().
(path)
| 135 | |
| 136 | |
| 137 | def _path_split(path): |
| 138 | """Replacement for os.path.split().""" |
| 139 | i = max(path.rfind(p) for p in path_separators) |
| 140 | if i < 0: |
| 141 | return '', path |
| 142 | return path[:i], path[i + 1:] |
| 143 | |
| 144 | |
| 145 | def _path_stat(path): |
no test coverage detected
searching dependent graphs…