(path: Path)
| 115 | |
| 116 | |
| 117 | def create_directory(path: Path): |
| 118 | if path.exists(): |
| 119 | shutil.rmtree(path) |
| 120 | path.mkdir(exist_ok=True, parents=True) |
| 121 | return path |
| 122 | |
| 123 | |
| 124 | def execute_command(cmd: List[str], cwd: Path, env: Dict[str, str] = os.environ): |