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

Function storagePath

packages/core/src/database/path.ts:5–8  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

3import { AbsolutePath } from "../schema"
4
5function storagePath(input: string) {
6 if (process.platform !== "win32") return input
7 return input.replaceAll("\\", "/")
8}
9
10function isWindowsStoragePath(input: string) {
11 return /^[A-Za-z]:\//.test(input) || input.startsWith("//")

Callers 3

absoluteFunction · 0.85
toDriverFunction · 0.85
fromDriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected