mirror of https://github.com/actions/toolkit
add some more debug
parent
7a5a1c3d42
commit
5dde1c4cf6
|
@ -136,6 +136,11 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||||
|
|
||||||
let result: childProcess.ChildProcess
|
let result: childProcess.ChildProcess
|
||||||
if (await ioUtil.isDirectory(inputPath, true)) {
|
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(
|
result = childProcess.spawn(
|
||||||
cmdPath,
|
cmdPath,
|
||||||
['/s', '/c', 'rd', '/s', '/q', `"${inputPath}"`]
|
['/s', '/c', 'rd', '/s', '/q', `"${inputPath}"`]
|
||||||
|
@ -181,7 +186,7 @@ export async function rmRF(inputPath: string): Promise<void> {
|
||||||
if (await ioUtil.isDirectory(inputPath)) {
|
if (await ioUtil.isDirectory(inputPath)) {
|
||||||
const files = await ioUtil.readdir(inputPath)
|
const files = await ioUtil.readdir(inputPath)
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
console.log(file)
|
console.log(`second ioUtil.readdir: ${file}`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await ioUtil.unlink(inputPath)
|
await ioUtil.unlink(inputPath)
|
||||||
|
|
Loading…
Reference in New Issue