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

Function makeSftpError

packages/kaos/test/ssh.test.ts:434–438  ·  view source on GitHub ↗
(errorCode: number)

Source from the content-addressed store, hash-verified

432 }
433
434 function makeSftpError(errorCode: number): Error {
435 const err = new Error('simulated SFTP error');
436 (err as unknown as { code: number }).code = errorCode;
437 return err;
438 }
439
440 // Minimal SFTPWrapper stub. For each I/O method, when `failing[method]` is
441 // true the callback is invoked with an error carrying `code`; otherwise

Callers 7

statFunction · 0.85
lstatFunction · 0.85
readFileFunction · 0.85
writeFileFunction · 0.85
appendFileFunction · 0.85
mkdirFunction · 0.85
readdirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected