MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / locksMatch

Function locksMatch

scripts/codex-worktree-cache.mjs:186–198  ·  view source on GitHub ↗
(candidateRoot, lockFiles)

Source from the content-addressed store, hash-verified

184}
185
186function locksMatch(candidateRoot, lockFiles) {
187 for (const lockFile of lockFiles) {
188 const current = join(ROOT, lockFile);
189 const candidate = join(candidateRoot, lockFile);
190 if (!existsSync(current) || !existsSync(candidate)) {
191 return false;
192 }
193 if (hashPath(current) !== hashPath(candidate)) {
194 return false;
195 }
196 }
197 return true;
198}
199
200function copyIntoPlace(source, destination, { replace = false } = {}) {
201 if (replace) {

Callers 1

findHydrationSourceFunction · 0.85

Calls 1

hashPathFunction · 0.85

Tested by

no test coverage detected