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