MCPcopy Index your code
hub / github.com/anomalyco/opencode / clean

Function clean

packages/opencode/test/fixture/fixture.ts:64–71  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

62}
63
64function clean(dir: string) {
65 return fs.rm(dir, {
66 recursive: true,
67 force: true,
68 maxRetries: 5,
69 retryDelay: 100,
70 })
71}
72
73async function stop(dir: string) {
74 if (!(await exists(dir))) return

Callers 3

tmpdirFunction · 0.70
tmpdirScopedFunction · 0.70
applyDirectoryEventFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected