From 0eb217c577df71c8dddb5a99f14ce2b9e9f6ef91 Mon Sep 17 00:00:00 2001 From: sirjonasxx <36828922+sirjonasxx@users.noreply.github.com> Date: Mon, 4 Jan 2021 18:44:34 +0100 Subject: [PATCH] actually --- .../java/gearth/services/unity_tools/UnityWebModifyer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java b/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java index 1571860..b1d407f 100644 --- a/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java +++ b/G-Earth/src/main/java/gearth/services/unity_tools/UnityWebModifyer.java @@ -1,5 +1,6 @@ package gearth.services.unity_tools; +import org.codehaus.plexus.util.FileUtils; import wasm.disassembly.InvalidOpCodeException; import java.io.*; @@ -46,7 +47,11 @@ public class UnityWebModifyer { } catch (Exception e) { e.printStackTrace(); - saveFolder.delete(); + try { + FileUtils.deleteDirectory(saveFolder); + } catch (IOException ex) { + ex.printStackTrace(); + } return false; } return true;