MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / toPosixRelativeForCwd

Function toPosixRelativeForCwd

packages/server/src/start.ts:728–733  ·  view source on GitHub ↗
(cwd: string, abs: string)

Source from the content-addressed store, hash-verified

726}
727
728function toPosixRelativeForCwd(cwd: string, abs: string): string {
729 if (abs === cwd) return '.';
730 const rel = nodePathRelativeNative(cwd, abs);
731 if (rel === '') return '.';
732 return rel.split(nodePathSep).join('/');
733}
734
735function mapFsWatchError(err: unknown):
736 | { ok: false; code: number; msg: string } {

Callers 2

addFunction · 0.85
removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected