From a25a620745b125eb136990901af148f9cfaa0375 Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Fri, 17 Feb 2023 20:46:34 +0000 Subject: [PATCH] ls --- packages/io/src/io.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) {