mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 20:19:06 +08:00
ls
This commit is contained in:
parent
6a3c62d3a8
commit
a25a620745
@ -167,7 +167,12 @@ export async function rmRF(inputPath: string): Promise<void> {
|
|||||||
// Shelling out fails to remove a symlink folder with missing source, this unlink catches that
|
// Shelling out fails to remove a symlink folder with missing source, this unlink catches that
|
||||||
try {
|
try {
|
||||||
if (await ioUtil.exists(inputPath)) {
|
if (await ioUtil.exists(inputPath)) {
|
||||||
console.log('exists')
|
if (await ioUtil.isDirectory(inputPath)) {
|
||||||
|
const files = await ioUtil.readdir(inputPath)
|
||||||
|
for (const file of files) {
|
||||||
|
console.log(file)
|
||||||
|
}
|
||||||
|
}
|
||||||
await ioUtil.unlink(inputPath)
|
await ioUtil.unlink(inputPath)
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user