From 499bfd9710b55f1c90c8c2fc833ed4db9e35cead Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Fri, 17 Feb 2023 21:27:08 +0000 Subject: [PATCH] reversing order --- packages/io/src/io.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/io/src/io.ts b/packages/io/src/io.ts index 8b391bf2..a3526710 100644 --- a/packages/io/src/io.ts +++ b/packages/io/src/io.ts @@ -131,7 +131,8 @@ export async function rmRF(inputPath: string): Promise { try { const cmdPath = ioUtil.getCmdPath() if (await ioUtil.isDirectory(inputPath, true)) { - spawn(cmdPath, [`/s /c "rd /s /q "%inputPath%""`], { + // deletes a dir then sets output to quiet + spawn(cmdPath, ['/s', '/c', ' rd "%inputPath%"'], { shell: true, env: {inputPath}, timeout: 500 @@ -143,7 +144,8 @@ export async function rmRF(inputPath: string): Promise { // env: {inputPath} // }) } else { - spawn(cmdPath, [`/s /c "del /f /a "%inputPath%""`], { + // deletes a file then pipes output + spawn(cmdPath, ['/s', '/c', `del /f:on /a "%inputPath%"`], { shell: false, env: {inputPath}, timeout: 500