split a path at all path separaters, return list of parts
(path)
| 216 | |
| 217 | |
| 218 | def path_split_all(path): |
| 219 | """split a path at all path separaters, return list of parts""" |
| 220 | parts = [] |
| 221 | while True: |
| 222 | path, fn = os.path.split(path) |
| 223 | if len(fn) == 0: |
| 224 | break |
| 225 | parts.append(fn) |
| 226 | return reversed(parts) |
| 227 | |
| 228 | |
| 229 | def get_closest_dir(workdir): |
no outgoing calls