Skip to content

Commit 793616d

Browse files
committed
fix(lock): use recursive mkdir for lock path creation
Ensures parent directories exist when creating lock directory.
1 parent aef9695 commit 793616d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/process-lock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class ProcessLockManager {
257257
}
258258

259259
// Atomic lock acquisition via mkdir.
260-
mkdirSync(lockPath, { recursive: false })
260+
mkdirSync(lockPath, { recursive: true })
261261

262262
// Track lock for cleanup.
263263
this.activeLocks.add(lockPath)

0 commit comments

Comments
 (0)