Skip to content

Commit 9972a4f

Browse files
committed
fix: recursive fs.rmdir is deprecated
1 parent b6ac81d commit 9972a4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/swiftorg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Swiftorg {
1414
try {
1515
await fs.access(swiftorg)
1616
core.debug(`Removing existing "${swiftorg}" directory`)
17-
await fs.rmdir(swiftorg, {recursive: true})
17+
await fs.rm(swiftorg, {recursive: true})
1818
} catch (error) {
1919
core.debug(`Failed removing "${swiftorg}" with "${error}"`)
2020
}

0 commit comments

Comments
 (0)