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

Function appendFile

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

Source from the content-addressed store, hash-verified

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));
496 return;
497 }
498 cb(null);
499 },
500 mkdir(_path: string, cb: (err: Error | null) => void): void {
501 if (failing.mkdir === true) {
502 cb(makeSftpError(errorCode));

Callers 13

appendSessionIndexEntryFunction · 0.50
ensureSessionIndexEntryFunction · 0.50
writeMigrationErrorsLogFunction · 0.50
appendIndexLocalFunction · 0.50
appendSessionIndexEntryFunction · 0.50
appendTaskOutputMethod · 0.50
flushOnceMethod · 0.50
writeTextMethod · 0.50
appendJsonlLineFunction · 0.50
logFeedbackUploadErrorFunction · 0.50
appendRolloutDecisionLogFunction · 0.50

Calls 1

makeSftpErrorFunction · 0.85

Tested by

no test coverage detected