MCPcopy Create free account
hub / github.com/JaredStewart/coderlm / _remove_file

Function _remove_file

plugin/generate.py:278–286  ·  view source on GitHub ↗
(path: Path, dry_run: bool)

Source from the content-addressed store, hash-verified

276
277
278def _remove_file(path: Path, dry_run: bool) -> None:
279 if not path.exists():
280 print(f" Already absent: {path}")
281 return
282 if dry_run:
283 print(f" [dry-run] remove {path}")
284 return
285 path.unlink()
286 print(f" Removed {path}")
287
288
289def _remove_dir_if_empty(path: Path, dry_run: bool) -> None:

Callers 1

clean_platformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected