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

Function isDirectoryOlderThan

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

Source from the content-addressed store, hash-verified

44}
45
46async function isDirectoryOlderThan(dir: string, now: number, ageMs: number): Promise<boolean> {
47 try {
48 const stat = await fs.stat(dir);
49 return now - stat.mtimeMs > ageMs;
50 } catch {
51 return false;
52 }
53}
54
55async function quarantineLockDir(lockDir: string): Promise<string | null> {
56 const quarantineDir = path.join(

Callers 1

shouldRecoverLockDirFunction · 0.70

Calls 1

statMethod · 0.80

Tested by

no test coverage detected