From 19aecb00ee5f3cc163c00d0195122a12365efe33 Mon Sep 17 00:00:00 2001 From: Dheeraj Prakash Date: Sun, 30 Jan 2022 18:27:26 -0500 Subject: [PATCH] fix: use fs.rm instead of deprecated fs.rmdir --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f6442f4..dfb2f9e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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); });