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

Function targetPath

packages/opencode/src/plugin/shared.ts:116–119  ·  view source on GitHub ↗
(target: string)

Source from the content-addressed store, hash-verified

114}
115
116function targetPath(target: string) {
117 if (target.startsWith("file://")) return fileURLToPath(target)
118 if (path.isAbsolute(target)) return target
119}
120
121async function resolveDirectoryIndex(dir: string) {
122 for (const name of INDEX_FILES) {

Callers 1

resolveTargetDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected