mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-05-03 05:08:35 +02:00
Remove use of deprecated fs.rmdir
Using fs.rm({recursive: true}) instead. Fixes #502
This commit is contained in:
parent
50f436c485
commit
b47aad4750
5 changed files with 5 additions and 5 deletions
|
@ -223,7 +223,7 @@ export async function tryDelete(file: string): Promise<void> {
|
|||
try {
|
||||
const stat = fs.lstatSync(file)
|
||||
if (stat.isDirectory()) {
|
||||
fs.rmdirSync(file, {recursive: true})
|
||||
fs.rmSync(file, {recursive: true})
|
||||
} else {
|
||||
fs.unlinkSync(file)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue