MCPcopy Create free account
hub / github.com/FonaTech/Clouds-Coder / _clear_pycache_dirs

Function _clear_pycache_dirs

split_coder.py:1353–1361  ·  view source on GitHub ↗
(root: Path)

Source from the content-addressed store, hash-verified

1351
1352
1353def _clear_pycache_dirs(root: Path) -> List[str]:
1354 removed: List[str] = []
1355 if not root.exists():
1356 return removed
1357 for path in sorted((p for p in root.rglob("__pycache__") if p.is_dir()), key=lambda p: len(p.parts), reverse=True):
1358 rel = path.relative_to(root).as_posix()
1359 shutil.rmtree(path, ignore_errors=True)
1360 removed.append(rel)
1361 return removed
1362
1363
1364def run_self_check(source_path: Path, output_dir: Path, *, expect_report: bool = True, report_name: str = "FRAMEWORK.md") -> bool:

Callers 1

run_self_checkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected