MCPcopy Index your code
hub / github.com/coder/mux / requireFilePath

Method requireFilePath

src/node/services/memoryService.ts:617–624  ·  view source on GitHub ↗
(parsed: ParsedMemoryPath, virtualPath: string)

Source from the content-addressed store, hash-verified

615 }
616
617 private requireFilePath(parsed: ParsedMemoryPath, virtualPath: string): MemoryScope {
618 if (parsed.scope === null || parsed.relPath === "") {
619 throw new MemoryCommandError(
620 `'${virtualPath}' is a directory; this command requires a file path under ${MEMORY_VIRTUAL_ROOT}/<scope>/`
621 );
622 }
623 return parsed.scope;
624 }
625
626 private emitChange(
627 ctx: MemoryScopeContext,

Callers 8

createMethod · 0.95
strReplaceMethod · 0.95
insertMethod · 0.95
deletePathMethod · 0.95
renameMethod · 0.95
readFileWithShaMethod · 0.95
saveFileMethod · 0.95
listHotMemoriesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected