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

Function decodeFilePath

packages/app/src/context/file/path.ts:75–81  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

73}
74
75export function decodeFilePath(input: string) {
76 try {
77 return decodeURIComponent(input)
78 } catch {
79 return input
80 }
81}
82
83export function encodeFilePath(filepath: string): string {
84 // Normalize Windows paths: convert backslashes to forward slashes

Callers 1

normalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected