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

Function _copytree

demo/app.py:193–196  ·  view source on GitHub ↗
(src: Path, dst: Path, symlinks=True, ignore=None)

Source from the content-addressed store, hash-verified

191 func(path)
192
193def _copytree(src: Path, dst: Path, symlinks=True, ignore=None):
194 if dst.exists():
195 shutil.rmtree(dst, onerror=_on_rm_error)
196 shutil.copytree(src, dst, symlinks=symlinks, ignore=ignore)
197
198def _safe_copy(src: Path, dst: Path):
199 dst.parent.mkdir(parents=True, exist_ok=True)

Callers 1

_prepare_workspaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected