Skip to content

Commit 2a36b77

Browse files
committed
fix: replace rmdir with rm for directory removal
1 parent f065271 commit 2a36b77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/zipatch/src

packages/zipatch/src/fs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { existsSync, writeFileSync } from 'node:fs'
2-
import { type FileHandle, mkdir, open, rmdir } from 'node:fs/promises'
2+
import { type FileHandle, mkdir, open, rm } from 'node:fs/promises'
33
import { dirname, join } from 'node:path'
44
import $debug from 'debug'
55

@@ -106,7 +106,7 @@ export class FileSystem {
106106
async removeDirectory(path: string): Promise<void> {
107107
const fullPath = join(this.root, path)
108108
debug('rmdir %s', fullPath)
109-
await rmdir(fullPath, { recursive: true })
109+
await rm(fullPath, { recursive: true })
110110
}
111111

112112
/**

0 commit comments

Comments
 (0)