From 6d8add6d54b0f8ff6bf9fa20abb39bb8a94f1230 Mon Sep 17 00:00:00 2001 From: Glavo Date: Wed, 21 Jan 2026 22:07:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Unzipper=20=E8=A7=A3?= =?UTF-8?q?=E5=8E=8B=E7=A9=BA=20zip=20=E6=96=87=E4=BB=B6=E6=97=B6=E6=8A=9B?= =?UTF-8?q?=E5=87=BA=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98=20(#5267?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/Unzipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/Unzipper.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/Unzipper.java index c5cf0c2d7..79b23b9e2 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/Unzipper.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/Unzipper.java @@ -152,7 +152,7 @@ public final class Unzipper { } } - if (entryCount == 0 && !terminateIfSubDirectoryNotExists) { + if (entryCount == 0 && !"/".equals(subDirectory) && !terminateIfSubDirectoryNotExists) { throw new NoSuchFileException("Subdirectory " + subDirectory + " does not exist in the zip file."); } }