MCPcopy
hub / github.com/prisma/prisma / pathToPosix

Function pathToPosix

packages/internals/src/utils/path.ts:10–15  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

8 * not be replaced.
9 */
10export function pathToPosix(filePath: string): string {
11 if (path.sep === path.posix.sep) {
12 return filePath
13 }
14 return filePath.split(path.sep).join(path.posix.sep)
15}
16
17/**
18 * Returns the longest common path ancestor of the two paths (which may also be equal to one or both of them).

Callers 8

getLocationMethod · 0.90
getTopLevelFoldersInDirFunction · 0.90
getNestedFoldersInDirFunction · 0.90
getFilesInDirFunction · 0.90
path.test.tsFile · 0.90
handleViewsIOFunction · 0.90
getGenerationDirsFunction · 0.90
getGenerationDirsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected