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

Function sftpExists

packages/kaos/src/ssh.ts:374–380  ·  view source on GitHub ↗
(sftp: SFTPWrapper, path: string)

Source from the content-addressed store, hash-verified

372}
373
374function sftpExists(sftp: SFTPWrapper, path: string): Promise<boolean> {
375 return new Promise<boolean>((resolve) => {
376 sftp.exists(path, (exists) => {
377 resolve(exists);
378 });
379 });
380}
381
382function sftpReadFile(sftp: SFTPWrapper, path: string): Promise<Buffer> {
383 return new Promise<Buffer>((resolve, reject) => {

Callers 2

mkdirMethod · 0.85
_mkdirRecursiveMethod · 0.85

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected