1
0
Fork 0

reversing order

pull/1343/head
Vallie Joseph 2023-02-17 21:27:08 +00:00
parent 3946ffb099
commit 499bfd9710
1 changed files with 4 additions and 2 deletions

View File

@ -131,7 +131,8 @@ export async function rmRF(inputPath: string): Promise<void> {
try { try {
const cmdPath = ioUtil.getCmdPath() const cmdPath = ioUtil.getCmdPath()
if (await ioUtil.isDirectory(inputPath, true)) { 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, shell: true,
env: {inputPath}, env: {inputPath},
timeout: 500 timeout: 500
@ -143,7 +144,8 @@ export async function rmRF(inputPath: string): Promise<void> {
// env: {inputPath} // env: {inputPath}
// }) // })
} else { } 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, shell: false,
env: {inputPath}, env: {inputPath},
timeout: 500 timeout: 500