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

Function statSafely

packages/server/test/snapshotService.unit.test.ts:478–484  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

476// ─── small helper that swallows stat errors ───────────────────────────────
477
478async function statSafely(path: string): Promise<{ mtimeMs: number; size: number } | undefined> {
479 try {
480 return await stat(path);
481 } catch {
482 return undefined;
483 }
484}

Callers 1

Calls 1

statFunction · 0.50

Tested by

no test coverage detected