(filePath, ageMs)
| 58 | const MINUTE = 60 * 1000; |
| 59 | |
| 60 | function writeMarker(filePath, ageMs) { |
| 61 | const timestamp = new Date(Date.now() - ageMs).toISOString(); |
| 62 | fs.writeFileSync(filePath, JSON.stringify({ category: 'test', timestamp })); |
| 63 | } |
| 64 | |
| 65 | function makeLockdir(dirPath, ageMs) { |
| 66 | fs.mkdirSync(dirPath, { recursive: true }); |