We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f065271 commit 2a36b77Copy full SHA for 2a36b77
1 file changed
packages/zipatch/src/fs.ts
@@ -1,5 +1,5 @@
1
import { existsSync, writeFileSync } from 'node:fs'
2
-import { type FileHandle, mkdir, open, rmdir } from 'node:fs/promises'
+import { type FileHandle, mkdir, open, rm } from 'node:fs/promises'
3
import { dirname, join } from 'node:path'
4
import $debug from 'debug'
5
@@ -106,7 +106,7 @@ export class FileSystem {
106
async removeDirectory(path: string): Promise<void> {
107
const fullPath = join(this.root, path)
108
debug('rmdir %s', fullPath)
109
- await rmdir(fullPath, { recursive: true })
+ await rm(fullPath, { recursive: true })
110
}
111
112
/**
0 commit comments