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

Function stopFsmonitor

packages/opencode/src/worktree/index.ts:361–366  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

359 })
360
361 function stopFsmonitor(target: string) {
362 return fs.exists(target).pipe(
363 Effect.orDie,
364 Effect.flatMap((exists) => (exists ? git(["fsmonitor--daemon", "stop"], { cwd: target }) : Effect.void)),
365 )
366 }
367
368 function cleanDirectory(target: string) {
369 return Effect.tryPromise({

Callers 1

index.tsFile · 0.85

Calls 2

gitFunction · 0.50
existsMethod · 0.45

Tested by

no test coverage detected