MCPcopy Create free account
hub / github.com/SethGammon/Citadel / makeLockdir

Function makeLockdir

scripts/test-state-hygiene.js:65–69  ·  view source on GitHub ↗
(dirPath, ageMs)

Source from the content-addressed store, hash-verified

63}
64
65function makeLockdir(dirPath, ageMs) {
66 fs.mkdirSync(dirPath, { recursive: true });
67 const t = (Date.now() - ageMs) / 1000;
68 fs.utimesSync(dirPath, t, t);
69}
70
71/**
72 * Build a complete fixture. Returns paths to everything created.

Callers 1

buildFixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected