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

Function readLockOwner

src/utils/fs-lock.ts:28–36  ·  view source on GitHub ↗
(lockDir: string)

Source from the content-addressed store, hash-verified

26}
27
28async function readLockOwner(lockDir: string): Promise<FsLockOwner | null> {
29 try {
30 const raw = await fs.readFile(path.join(lockDir, FS_LOCK_OWNER_FILE), 'utf8');
31 const parsed = JSON.parse(raw) as unknown;
32 return isFsLockOwner(parsed) ? parsed : null;
33 } catch {
34 return null;
35 }
36}
37
38async function removeLockDir(lockDir: string): Promise<void> {
39 try {

Callers 3

shouldRecoverLockDirFunction · 0.85
tryRecoverExpiredLockDirFunction · 0.85
releaseFunction · 0.85

Calls 2

isFsLockOwnerFunction · 0.90
readFileMethod · 0.80

Tested by

no test coverage detected