From 5dde1c4cf6223e3f3974c93fc01ffdaebb676ef0 Mon Sep 17 00:00:00 2001 From: Cory Miller <13227161+cory-miller@users.noreply.github.com> Date: Tue, 21 Feb 2023 16:34:04 +0000 Subject: [PATCH] add some more debug --- 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 9ede784a..5131aa51 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -136,6 +136,11 @@ export async function rmRF(inputPath: string): Promise { let result: childProcess.ChildProcess if (await ioUtil.isDirectory(inputPath, true)) { + const files = await ioUtil.readdir(inputPath) + for (const file of files) { + console.log(`first ioUtil.readdir: ${file}`) + } + result = childProcess.spawn( cmdPath, ['/s', '/c', 'rd', '/s', '/q', `"${inputPath}"`] @@ -181,7 +186,7 @@ export async function rmRF(inputPath: string): Promise { if (await ioUtil.isDirectory(inputPath)) { const files = await ioUtil.readdir(inputPath) for (const file of files) { - console.log(file) + console.log(`second ioUtil.readdir: ${file}`) } } await ioUtil.unlink(inputPath)