MCPcopy
hub / github.com/anomalyco/opencode / rm

Function rm

packages/opencode/test/snapshot/snapshot.test.ts:49–50  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

47const exists = (file: string) => FSUtil.Service.use((fs) => fs.existsSafe(file))
48const mkdirp = (dir: string) => FSUtil.Service.use((fs) => fs.ensureDir(dir))
49const rm = (file: string) =>
50 FSUtil.Service.use((fs) => fs.remove(file, { recursive: true, force: true }).pipe(Effect.ignore))
51
52const initialize = Effect.fn("SnapshotTest.initialize")(function* (dir: string) {
53 const unique = Math.random().toString(36).slice(2)

Callers 4

snapshot.test.tsFile · 0.70
resetDatabaseFunction · 0.50
discovery.test.tsFile · 0.50
permission.test.tsFile · 0.50

Calls 2

removeMethod · 0.65
useMethod · 0.45

Tested by

no test coverage detected