(cache)
| 88 | } |
| 89 | |
| 90 | function saveCache(cache) { |
| 91 | try { |
| 92 | fs.writeFileSync(CACHE_FILE, JSON.stringify(cache, null, 2)); |
| 93 | } catch (error) { |
| 94 | log(`Warning: Failed to save cache: ${error.message}`, 'warning'); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | function getFileHash(filePath) { |
| 99 | const content = fs.readFileSync(filePath, 'utf8'); |