1
0
Fork 0

try inlining inputPath

pull/1344/head
Cory Miller 2023-02-21 16:02:26 +00:00
parent bcf8127e13
commit 7a5a1c3d42
1 changed files with 3 additions and 9 deletions

View File

@ -138,18 +138,12 @@ export async function rmRF(inputPath: string): Promise<void> {
if (await ioUtil.isDirectory(inputPath, true)) { if (await ioUtil.isDirectory(inputPath, true)) {
result = childProcess.spawn( result = childProcess.spawn(
cmdPath, cmdPath,
['/s', '/c', 'rd', '/s', '/q', '"%inputPath%"'], ['/s', '/c', 'rd', '/s', '/q', `"${inputPath}"`]
{
env: {inputPath}
}
) )
} else { } else {
result = childProcess.spawn( result = childProcess.spawn(
cmdPath, cmdPath,
['/s', '/c', 'del', '/f', '/q', '/a', '"%inputPath%"'], ['/s', '/c', 'del', '/f', '/q', '/a', `"${inputPath}"`]
{
env: {inputPath}
}
) )
} }
@ -162,7 +156,7 @@ export async function rmRF(inputPath: string): Promise<void> {
}) })
result.stderr?.on('data', data => { result.stderr?.on('data', data => {
console.log(`stdout: ${data}`) console.log(`stderr: ${data}`)
}) })
result.on('error', err => { result.on('error', err => {