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

Function _safe_copy

demo/app.py:198–200  ·  view source on GitHub ↗
(src: Path, dst: Path)

Source from the content-addressed store, hash-verified

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)
200 shutil.copy2(src, dst)
201
202def _cleanup_old_runs(max_age_hours=12):
203 try:

Callers 1

_prepare_workspaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected