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

Method iterdir

packages/kaos/src/ssh.ts:610–617  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

608 }
609
610 async *iterdir(path: string): AsyncGenerator<string> {
611 const resolved = this._resolvePath(path);
612 const entries = await sftpReaddir(this._sftp, resolved);
613 for (const entry of entries) {
614 if (entry.filename === '.' || entry.filename === '..') continue;
615 yield join(resolved, entry.filename);
616 }
617 }
618
619 async *glob(
620 path: string,

Callers

nothing calls this directly

Calls 2

_resolvePathMethod · 0.95
sftpReaddirFunction · 0.85

Tested by

no test coverage detected