MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getLockPath

Function getLockPath

source code/utils/cronTasksLock.ts:51–53  ·  view source on GitHub ↗
(dir?: string)

Source from the content-addressed store, hash-verified

49let lastBlockedBy: string | undefined
50
51function getLockPath(dir?: string): string {
52 return join(dir ?? getProjectRoot(), LOCK_FILE_REL)
53}
54
55async function readLock(dir?: string): Promise<SchedulerLock | undefined> {
56 let raw: string

Callers 4

readLockFunction · 0.70
tryCreateExclusiveFunction · 0.70
tryAcquireSchedulerLockFunction · 0.70
releaseSchedulerLockFunction · 0.70

Calls 1

getProjectRootFunction · 0.85

Tested by

no test coverage detected