(monitorDir: string)
| 62 | } |
| 63 | |
| 64 | static forceClean(monitorDir: string): void { |
| 65 | if (fs.existsSync(monitorDir)) { |
| 66 | fs.rmSync(monitorDir, {recursive: true, force: true}); |
| 67 | logger.info('force cleaned monitor service files'); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // maybe a good idea to expose this, if error didn't be caught api could still use reset |
| 72 | /** |