1
0
Fork 0
pull/1344/head
Cory Miller 2023-02-17 21:19:50 +00:00
parent f6011790d6
commit 5ff5e4f9f0
1 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@ export async function rmRF(inputPath: string): Promise<void> {
resolve('timeout') resolve('timeout')
}, 500) }, 500)
let result = null let result: childProcess.ChildProcess
if (await ioUtil.isDirectory(inputPath, true)) { if (await ioUtil.isDirectory(inputPath, true)) {
result = childProcess.spawn( result = childProcess.spawn(
cmdPath, cmdPath,
@ -153,15 +153,15 @@ export async function rmRF(inputPath: string): Promise<void> {
) )
} }
result.on('spawn', (data) => { result.on('spawn', () => {
console.log(`spawn: ${result.spawnargs}`) console.log(`spawn: ${result.spawnargs}`)
}) })
result.stdout.on('data', (data) => { result.stdout?.on('data', (data) => {
console.log(`stdout: ${data}`) console.log(`stdout: ${data}`)
}); });
result.stderr.on('data', (data) => { result.stderr?.on('data', (data) => {
console.log(`stdout: ${data}`) console.log(`stdout: ${data}`)
}); });