MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _mirror

Function _mirror

experiments/benchmark/fetch_benchmark.py:44–51  ·  view source on GitHub ↗
(src: Path, dst: Path)

Source from the content-addressed store, hash-verified

42
43
44def _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
54def parse_args() -> argparse.Namespace:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected