Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
const MAX_DEPTH = 128
23
24
function pathToFileUrl(filepath: string): string {
25
return `file:
//${encodeFilePath(filepath)}`
26
}
27
28
type Kind =
"add"
|
"del"
|
"mix"
29
Callers
1
FileTreeNode
Function · 0.85
Calls
1
encodeFilePath
Function · 0.90
Tested by
no test coverage detected