1
0
Fork 0

add some more debug

pull/1344/head
Cory Miller 2023-02-21 16:34:04 +00:00
parent 7a5a1c3d42
commit 5dde1c4cf6
1 changed files with 6 additions and 1 deletions

View File

@ -136,6 +136,11 @@ export async function rmRF(inputPath: string): Promise<void> {
let result: childProcess.ChildProcess
if (await ioUtil.isDirectory(inputPath, true)) {
const files = await ioUtil.readdir(inputPath)
for (const file of files) {
console.log(`first ioUtil.readdir: ${file}`)
}
result = childProcess.spawn(
cmdPath,
['/s', '/c', 'rd', '/s', '/q', `"${inputPath}"`]
@ -181,7 +186,7 @@ export async function rmRF(inputPath: string): Promise<void> {
if (await ioUtil.isDirectory(inputPath)) {
const files = await ioUtil.readdir(inputPath)
for (const file of files) {
console.log(file)
console.log(`second ioUtil.readdir: ${file}`)
}
}
await ioUtil.unlink(inputPath)