(dir: string)
| 5 | * if it exists. |
| 6 | */ |
| 7 | export const removeFiles = (dir: string) => { |
| 8 | if (!fs.existsSync(dir)) { |
| 9 | return |
| 10 | } |
| 11 | |
| 12 | fs.readdirSync(dir).forEach((f) => { |
| 13 | return fs.rmSync(`${dir}/${f}`, { recursive: true }) |
| 14 | }) |
| 15 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…