1
0
Fork 0
pull/1344/head
Cory Miller 2023-02-17 20:46:34 +00:00
parent 6a3c62d3a8
commit a25a620745
1 changed files with 6 additions and 1 deletions

View File

@ -167,7 +167,12 @@ export async function rmRF(inputPath: string): Promise<void> {
// Shelling out fails to remove a symlink folder with missing source, this unlink catches that
try {
if (await ioUtil.exists(inputPath)) {
console.log('exists')
if (await ioUtil.isDirectory(inputPath)) {
const files = await ioUtil.readdir(inputPath)
for (const file of files) {
console.log(file)
}
}
await ioUtil.unlink(inputPath)
}
} catch (err) {