(src: Path, dst: Path)
| 42 | |
| 43 | |
| 44 | def _mirror(src: Path, dst: Path) -> None: |
| 45 | dst.mkdir(parents=True, exist_ok=True) |
| 46 | for item in src.iterdir(): |
| 47 | target = dst / item.name |
| 48 | if item.is_dir(): |
| 49 | shutil.copytree(item, target, dirs_exist_ok=True) |
| 50 | else: |
| 51 | shutil.copy2(item, target) |
| 52 | |
| 53 | |
| 54 | def parse_args() -> argparse.Namespace: |