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

Method abs

src/node/services/memoryService.ts:299–301  ·  view source on GitHub ↗
(relPath: string)

Source from the content-addressed store, hash-verified

297 constructor(readonly physicalRoot: string) {}
298
299 private abs(relPath: string): string {
300 return relPath === "" ? this.physicalRoot : path.join(this.physicalRoot, ...relPath.split("/"));
301 }
302
303 assertRootSafe(): Promise<void> {
304 // Host-local roots are trusted; per-target symlink escape checks happen in assertContained().

Callers 15

walkMethod · 0.95
kindMethod · 0.95
readFilePrefixMethod · 0.95
writeFileMethod · 0.95
removeMethod · 0.95
renameMethod · 0.95
assertContainedMethod · 0.95
formatCountAbbrevFunction · 0.80
SubAgentListItemFunction · 0.80
applyVisualOperatorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected