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

Method kind

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

Source from the content-addressed store, hash-verified

349 }
350
351 async kind(relPath: string): Promise<MemoryEntryKind> {
352 try {
353 const stat = await fsPromises.stat(this.abs(relPath));
354 return stat.isDirectory() ? "dir" : "file";
355 } catch {
356 return null;
357 }
358 }
359
360 async readFilePrefix(relPath: string, maxBytes: number): Promise<string> {
361 const handle = await fsPromises.open(this.abs(relPath), "r");

Callers

nothing calls this directly

Calls 2

absMethod · 0.95
statMethod · 0.65

Tested by

no test coverage detected