MCPcopy Create free account
hub / github.com/EvoMap/evolver / withFileLock

Function withFileLock

src/gep/assetStore.js:93–100  ·  view source on GitHub ↗
(targetPath, fn)

Source from the content-addressed store, hash-verified

91}
92
93function withFileLock(targetPath, fn) {
94 const lockPath = _acquireLock(targetPath);
95 try {
96 return fn();
97 } finally {
98 _releaseLock(lockPath);
99 }
100}
101
102function readJsonIfExists(filePath, fallback) {
103 try {

Callers 6

consumePendingSignalsFunction · 0.85
upsertGeneFunction · 0.85
appendCapsuleFunction · 0.85
upsertCapsuleFunction · 0.85
appendFailedCapsuleFunction · 0.85

Calls 3

_acquireLockFunction · 0.85
_releaseLockFunction · 0.85
fnFunction · 0.50

Tested by

no test coverage detected