MCPcopy Create free account
hub / github.com/openai/plugins / toPosixPath

Function toPosixPath

plugins/plugin-eval/src/lib/files.js:94–96  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

92}
93
94export function toPosixPath(filePath) {
95 return filePath.split(path.sep).join("/");
96}
97
98export function relativePath(fromPath, toPath) {
99 const value = path.relative(fromPath, toPath) || ".";

Callers 2

relativePathFunction · 0.85
formatCommandPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected