(parent: string, dirent: fs.Dirent)
| 294 | } |
| 295 | |
| 296 | async function rm(parent: string, dirent: fs.Dirent) { |
| 297 | try { |
| 298 | const fileName = path.join(parent, dirent.name); |
| 299 | core.debug(`deleting "${fileName}"`); |
| 300 | if (dirent.isFile()) { |
| 301 | await fs.promises.unlink(fileName); |
| 302 | } else if (dirent.isDirectory()) { |
| 303 | await io.rmRF(fileName); |
| 304 | } |
| 305 | } catch {} |
| 306 | } |
| 307 | |
| 308 | async function rmRF(dirName: string) { |
| 309 | core.debug(`deleting "${dirName}"`); |
no outgoing calls
no test coverage detected