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

Function readFile

packages/kaos/test/ssh.test.ts:479–485  ·  view source on GitHub ↗
(_path: string, cb: (err: Error | null, data?: Buffer) => void)

Source from the content-addressed store, hash-verified

477 cb(null, dirStats);
478 },
479 readFile(_path: string, cb: (err: Error | null, data?: Buffer) => void): void {
480 if (failing.readFile === true) {
481 cb(makeSftpError(errorCode));
482 return;
483 }
484 cb(null, Buffer.alloc(0));
485 },
486 writeFile(_path: string, _data: unknown, cb: (err: Error | null) => void): void {
487 if (failing.writeFile === true) {
488 cb(makeSftpError(errorCode));

Calls 2

makeSftpErrorFunction · 0.85
lookupFunction · 0.85

Tested by

no test coverage detected