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

Function writeFile

packages/kaos/test/ssh.test.ts:486–492  ·  view source on GitHub ↗
(_path: string, _data: unknown, cb: (err: Error | null) => void)

Source from the content-addressed store, hash-verified

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));
489 return;
490 }
491 cb(null);
492 },
493 appendFile(_path: string, _data: unknown, cb: (err: Error | null) => void): void {
494 if (failing.appendFile === true) {
495 cb(makeSftpError(errorCode));

Callers 15

local.test.tsFile · 0.70
marker.test.tsFile · 0.50
detect.test.tsFile · 0.50
makeSessionFunction · 0.50
skills.test.tsFile · 0.50

Calls 1

makeSftpErrorFunction · 0.85

Tested by

no test coverage detected