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

Function fileTarget

packages/opencode/src/plugin/meta.ts:56–60  ·  view source on GitHub ↗
(spec: string, target: string)

Source from the content-addressed store, hash-verified

54}
55
56function fileTarget(spec: string, target: string) {
57 if (spec.startsWith("file://")) return fileURLToPath(spec)
58 if (target.startsWith("file://")) return fileURLToPath(target)
59 return
60}
61
62async function modifiedAt(file: string) {
63 const stat = await Filesystem.statAsync(file)

Callers 1

entryCoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected