Skip to content

Commit e741f10

Browse files
committed
fix(api-page-builder): use fs.remove when deleting files and folders
1 parent 3338926 commit e741f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api-page-builder/src/graphql/crud/install/utils/downloadInstallFiles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function extractZip(zipPath: string, dir: string): Promise<void> {
2020
}
2121

2222
export function deleteFile(path: string): Promise<void> {
23-
return fs.unlink(path);
23+
return fs.remove(path);
2424
}
2525

2626
const INSTALL_DIR = "/tmp";

0 commit comments

Comments
 (0)