MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / restoreQuarantinedLockDir

Function restoreQuarantinedLockDir

src/utils/fs-lock.ts:69–76  ·  view source on GitHub ↗
(quarantineDir: string, lockDir: string)

Source from the content-addressed store, hash-verified

67}
68
69async function restoreQuarantinedLockDir(quarantineDir: string, lockDir: string): Promise<void> {
70 try {
71 await fs.rename(quarantineDir, lockDir);
72 } catch {
73 // Another contender may already have acquired the lock. Leave the quarantined
74 // directory intact rather than deleting a lock we could not validate.
75 }
76}
77
78async function shouldRecoverLockDir(
79 lockDir: string,

Callers 1

tryRecoverExpiredLockDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected