diff --git a/packages/io/src/io.ts b/packages/io/src/io.ts index a8c18d32..5ed36c20 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -167,7 +167,12 @@ export async function rmRF(inputPath: string): Promise { // 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) {