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

Function getSftpStatusCode

packages/kaos/src/ssh.ts:147–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147function getSftpStatusCode(): typeof DEFAULT_SFTP_STATUS_CODE {
148 return {
149 ...DEFAULT_SFTP_STATUS_CODE,
150 ...ssh2.utils?.sftp?.STATUS_CODE,
151 };
152}
153
154function getErrorCode(error: unknown): number | undefined {
155 if (typeof error !== 'object' || error === null) {

Callers 1

mapSftpErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected