Ensure that the parent directory of `path` exists
(path)
| 1304 | del _UNPACK_FORMATS[name] |
| 1305 | |
| 1306 | def _ensure_directory(path): |
| 1307 | """Ensure that the parent directory of `path` exists""" |
| 1308 | dirname = os.path.dirname(path) |
| 1309 | if not os.path.isdir(dirname): |
| 1310 | os.makedirs(dirname) |
| 1311 | |
| 1312 | def _unpack_zipfile(filename, extract_dir): |
| 1313 | """Unpack zip `filename` to `extract_dir` |
no test coverage detected
searching dependent graphs…