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

Function pathFromTab

packages/app/src/context/file/path.ts:138–141  ·  view source on GitHub ↗
(tabValue: string)

Source from the content-addressed store, hash-verified

136 }
137
138 const pathFromTab = (tabValue: string) => {
139 if (!tabValue.startsWith("file://")) return
140 return normalize(tabValue)
141 }
142
143 const normalizeDir = (input: string) => normalize(input).replace(/\/+$/, "")
144

Callers

nothing calls this directly

Calls 1

normalizeFunction · 0.70

Tested by

no test coverage detected