(filePath: string)
| 19 | } |
| 20 | |
| 21 | static async deleteFile(filePath: string) { |
| 22 | if (fs.existsSync(filePath)) { |
| 23 | try { |
| 24 | fs.unlinkSync(filePath); |
| 25 | } |
| 26 | catch (err) { |
| 27 | core.warning(err.toString()); |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | static pathExists(path: string) { |
| 33 | return fs.existsSync(path); |
no test coverage detected