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

Function toPlatform

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

Source from the content-addressed store, hash-verified

20}
21
22function toPlatform(input: string) {
23 if (process.platform !== "win32" || !isWindowsStoragePath(input)) return input
24 return input.replaceAll("/", "\\")
25}
26
27export const absoluteColumn = customType<{
28 data: AbsolutePath

Callers 1

fromDriverFunction · 0.85

Calls 1

isWindowsStoragePathFunction · 0.85

Tested by

no test coverage detected