MCPcopy Create free account
hub / github.com/anomalyco/opencode / pathToFileUrl

Function pathToFileUrl

packages/app/src/components/file-tree.tsx:24–26  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

22const MAX_DEPTH = 128
23
24function pathToFileUrl(filepath: string): string {
25 return `file://${encodeFilePath(filepath)}`
26}
27
28type Kind = "add" | "del" | "mix"
29

Callers 1

FileTreeNodeFunction · 0.85

Calls 1

encodeFilePathFunction · 0.90

Tested by

no test coverage detected