(...files: (string | undefined)[])
| 234 | fs.unlinkSync(file); |
| 235 | } catch (err) { |
| 236 | console.debug(`Failed to delete temp file ${path.basename(file)}:`, err); |
| 237 | } |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | cleanupAllTempFiles(): void { |
| 243 | try { |
| 244 | const files = fs.readdirSync(this.tempDir); |
| 245 | for (const file of files) { |
| 246 | fs.unlinkSync(path.join(this.tempDir, file)); |
| 247 | } |
| 248 | } catch (error) { |
| 249 | console.debug("Error cleaning up temp directory:", error); |
no test coverage detected