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

Function readdir

packages/kaos/test/ssh.test.ts:507–513  ·  view source on GitHub ↗
(_path: string, cb: (err: Error | null, list?: unknown[]) => void)

Source from the content-addressed store, hash-verified

505 cb(null);
506 },
507 readdir(_path: string, cb: (err: Error | null, list?: unknown[]) => void): void {
508 if (failing.readdir === true) {
509 cb(makeSftpError(errorCode));
510 return;
511 }
512 cb(null, []);
513 },
514 // exists() always reports the file is absent so plain mkdir takes the
515 // create path (where `failing.mkdir` decides the outcome).
516 exists(_path: string, cb: (exists: boolean) => void): void {

Callers 15

skills.test.tsFile · 0.50
detectMigrationFunction · 0.50
listDirSafeFunction · 0.50
migrateSessionsStepFunction · 0.50
classifySessionDirFunction · 0.50
migrateSkillsStepFunction · 0.50
migrateUserHistoryStepFunction · 0.50
markdownFilesFunction · 0.50
findDtsFilesFunction · 0.50
readSessionLogsFunction · 0.50
mainFunction · 0.50

Calls 3

makeSftpErrorFunction · 0.85
lookupFunction · 0.85
makeStatsFunction · 0.70

Tested by

no test coverage detected