(dirPath, ageMs)
| 63 | } |
| 64 | |
| 65 | function 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. |