This commit is contained in:
sirjonasxx 2021-01-04 18:44:34 +01:00
parent 698e9591a5
commit 0eb217c577

View File

@ -1,5 +1,6 @@
package gearth.services.unity_tools; package gearth.services.unity_tools;
import org.codehaus.plexus.util.FileUtils;
import wasm.disassembly.InvalidOpCodeException; import wasm.disassembly.InvalidOpCodeException;
import java.io.*; import java.io.*;
@ -46,7 +47,11 @@ public class UnityWebModifyer {
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
saveFolder.delete(); try {
FileUtils.deleteDirectory(saveFolder);
} catch (IOException ex) {
ex.printStackTrace();
}
return false; return false;
} }
return true; return true;