Skip to content

Commit 6af8bb9

Browse files
committed
Replace recursive fs.rmdir with recursive fs.rm
Apparently the former will be removed in future versions of Node.
1 parent 16ca9f4 commit 6af8bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const split = (str: string, delimiter: string): [string, string] => {
2323
*/
2424
export const clean = async (name: string): Promise<void> => {
2525
const dir = path.join(os.tmpdir(), `coder/${name}`)
26-
await fs.promises.rmdir(dir, { recursive: true })
26+
await fs.promises.rm(dir, { force: true, recursive: true })
2727
}
2828

2929
/**

0 commit comments

Comments
 (0)