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

Function sftpLstat

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

Source from the content-addressed store, hash-verified

331}
332
333function sftpLstat(sftp: SFTPWrapper, path: string): Promise<SFTPStats> {
334 return new Promise<SFTPStats>((resolve, reject) => {
335 sftp.lstat(path, (err, stats) => {
336 if (err) {
337 reject(mapSftpError('lstat', err));
338 } else {
339 resolve(stats);
340 }
341 });
342 });
343}
344
345interface SFTPFileEntry {
346 filename: string;

Callers 1

statMethod · 0.85

Calls 3

rejectFunction · 0.85
mapSftpErrorFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected