MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / copytree_overwrite

Function copytree_overwrite

demo/pipeline.py:34–37  ·  view source on GitHub ↗
(src: Path, dst: Path)

Source from the content-addressed store, hash-verified

32 print(f"✅ Copied folder {src_dir} → {dst_dir}")
33
34def copytree_overwrite(src: Path, dst: Path):
35 if dst.exists():
36 shutil.rmtree(dst)
37 shutil.copytree(src, dst)
38
39def safe_copy(src: Path, dst: Path):
40 dst.parent.mkdir(parents=True, exist_ok=True)

Callers 1

pipeline.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected