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

Function stat

packages/kaos/test/ssh.test.ts:357–376  ·  view source on GitHub ↗
(
        _path: string,
        cb: (err: Error | null | undefined, stats: Record<string, unknown>) => void,
      )

Source from the content-addressed store, hash-verified

355 cb(null, target);
356 },
357 stat(
358 _path: string,
359 cb: (err: Error | null | undefined, stats: Record<string, unknown>) => void,
360 ): void {
361 cb(null, {
362 mode: isDir ? 0o040755 : 0o100644,
363 size: 0,
364 uid: 0,
365 gid: 0,
366 atime: 0,
367 mtime: 0,
368 isDirectory: () => isDir,
369 isFile: () => !isDir,
370 isSymbolicLink: () => false,
371 isSocket: () => false,
372 isCharacterDevice: () => false,
373 isBlockDevice: () => false,
374 isFIFO: () => false,
375 });
376 },
377 };
378 }
379

Callers 1

local.test.tsFile · 0.70

Calls 5

makeSftpErrorFunction · 0.85
lookupFunction · 0.85
makeFileStatsFunction · 0.85
makeDirStatsFunction · 0.85
makeStatsFunction · 0.70

Tested by

no test coverage detected