Create a directory and its parents, even if it already exists.
(path)
| 436 | |
| 437 | |
| 438 | def mkdir_p(path): |
| 439 | """Create a directory and its parents, even if it already exists.""" |
| 440 | try: |
| 441 | os.makedirs(path) |
| 442 | except OSError as e: |
| 443 | if e.errno != errno.EEXIST: |
| 444 | raise |
| 445 | |
| 446 | |
| 447 | def gather_existing_partials(partial_path): |