MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / isDirectoryOlderThan

Function isDirectoryOlderThan

src/utils/fs-lock-sync.ts:36–42  ·  view source on GitHub ↗
(dir: string, now: number, ageMs: number)

Source from the content-addressed store, hash-verified

34}
35
36function isDirectoryOlderThan(dir: string, now: number, ageMs: number): boolean {
37 try {
38 return now - statSync(dir).mtimeMs > ageMs;
39 } catch {
40 return false;
41 }
42}
43
44function shouldRecoverLockDir(
45 lockDir: string,

Callers 1

shouldRecoverLockDirFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected