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

Function relativePath

plugins/plugin-eval/src/lib/files.js:98–101  ·  view source on GitHub ↗
(fromPath, toPath)

Source from the content-addressed store, hash-verified

96}
97
98export function relativePath(fromPath, toPath) {
99 const value = path.relative(fromPath, toPath) || ".";
100 return toPosixPath(value);
101}
102
103export function formatCommandPath(targetPath, options = {}) {
104 const absoluteTargetPath = path.resolve(targetPath);

Callers 14

computeBudgetProfileFunction · 0.90
loadBudgetBaselineFunction · 0.90
initializeBenchmarkFunction · 0.90
runBenchmarkFunction · 0.90
analyzeObservedUsageFunction · 0.90
createEvaluationResultFunction · 0.90
buildWorkflowGuideFunction · 0.90
visitSnapshotFunction · 0.90
evaluatePluginFunction · 0.90
analyzeCoverageArtifactsFunction · 0.90
analyzePythonFilesFunction · 0.90

Calls 1

toPosixPathFunction · 0.85

Tested by

no test coverage detected