(cacheDirectory: string[])
| 81 | } |
| 82 | |
| 83 | function isCacheDirectoryExists(cacheDirectory: string[]) { |
| 84 | const result = cacheDirectory.reduce((previousValue, currentValue) => { |
| 85 | return previousValue || fs.existsSync(currentValue); |
| 86 | }, false); |
| 87 | |
| 88 | return result; |
| 89 | } |
| 90 | |
| 91 | run(true); |