MCPcopy
hub / github.com/stemdeckapp/stemdeck / _rmtree

Function _rmtree

app/pipeline/runner.py:27–33  ·  view source on GitHub ↗
(path: Path)

Source from the content-addressed store, hash-verified

25
26
27def _rmtree(path: Path) -> None:
28 try:
29 shutil.rmtree(path)
30 except FileNotFoundError:
31 pass
32 except Exception:
33 logger.warning("failed to remove %s", path, exc_info=True)
34
35
36# Only one heavy job runs at a time -- Demucs is GPU/CPU-hungry.

Callers 1

_run_asyncFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected