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

Function sanitizePath

packages/opencode/test/fixture/fixture.ts:53–55  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

51
52// Strip null bytes from paths (defensive fix for CI environment issues)
53function sanitizePath(p: string): string {
54 return p.replace(/\0/g, "")
55}
56
57function exists(dir: string) {
58 return fs

Callers 2

tmpdirFunction · 0.85
tmpdirScopedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected