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

Function lstat

packages/kaos/test/ssh.test.ts:472–478  ·  view source on GitHub ↗
(_path: string, cb: (err: Error | null, stats?: unknown) => void)

Source from the content-addressed store, hash-verified

470 cb(null, dirStats);
471 },
472 lstat(_path: string, cb: (err: Error | null, stats?: unknown) => void): void {
473 if (failing.lstat === true) {
474 cb(makeSftpError(errorCode));
475 return;
476 }
477 cb(null, dirStats);
478 },
479 readFile(_path: string, cb: (err: Error | null, data?: Buffer) => void): void {
480 if (failing.readFile === true) {
481 cb(makeSftpError(errorCode));

Callers 2

statMethod · 0.50
statFileFunction · 0.50

Calls 3

makeSftpErrorFunction · 0.85
lookupFunction · 0.85
makeStatsFunction · 0.70

Tested by

no test coverage detected