diff --git a/src/main/java/com/thatcherdev/betterbackdoor/backend/Utils.java b/src/main/java/com/thatcherdev/betterbackdoor/backend/Utils.java index f4847bb..ae04383 100644 --- a/src/main/java/com/thatcherdev/betterbackdoor/backend/Utils.java +++ b/src/main/java/com/thatcherdev/betterbackdoor/backend/Utils.java @@ -151,7 +151,7 @@ private static void dirToZip(File rootDir, String sourceDir, ZipOutputStream out */ public static String unzip(String zipFileName) throws IOException { ZipFile zipFile = new ZipFile(zipFileName); - String outputDir = new File(zipFileName).getParent(); + String outputDir = new File(zipFileName).getParentFile().getAbsolutePath(); Enumeration entries = zipFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = entries.nextElement();