Skip to content

Commit

Permalink
fix: use fs.rm instead of deprecated fs.rmdir
Browse files Browse the repository at this point in the history
  • Loading branch information
ariscript committed Jan 30, 2022
1 parent 54e3cd4 commit 19aecb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ ipcMain.on("deleteInstance", async (e, name: string) => {

if (!instancePath) throw new Error(`Instance ${name} not found`); // this should never happen

await fs.rmdir(instancePath, { recursive: true });
await fs.rm(instancePath, { recursive: true });

setTimeout(() => mainWindow.reload(), 500);
});
Expand Down

0 comments on commit 19aecb0

Please # to comment.