MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getLockPath

Function getLockPath

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

Source from the content-addressed store, hash-verified

47let lastBlockedBy: string | undefined
48
49function getLockPath(dir?: string): string {
50 return join(dir ?? getProjectRoot(), LOCK_FILE_REL)
51}
52
53async function readLock(dir?: string): Promise<SchedulerLock | undefined> {
54 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