MCPcopy
hub / github.com/coder/mux / normalizePath

Method normalizePath

src/node/runtime/Runtime.ts:442–442  ·  view source on GitHub ↗

* Normalize a path for comparison purposes within this runtime's context. * Handles runtime-specific path semantics (local vs remote). * * @param targetPath Path to normalize (may be relative or absolute) * @param basePath Base path to resolve relative paths against * @returns Normali

(targetPath: string, basePath: string)

Source from the content-addressed store, hash-verified

440 * runtime.normalizePath("~/project", "~") // => "~/project"
441 */
442 normalizePath(targetPath: string, basePath: string): string;
443
444 /**
445 * Compute absolute workspace path from project and workspace name.

Callers 15

createWorkflowServiceFunction · 0.65
normalizePathMethod · 0.65
validateScriptFunction · 0.65
bash.test.tsFile · 0.65
validatePathInCwdFunction · 0.65

Implementers 1

MultiProjectRuntimesrc/node/runtime/multiProjectRuntime.t

Calls

no outgoing calls

Tested by

no test coverage detected