We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0f9ba1 commit d48a3c2Copy full SHA for d48a3c2
HMCLCore/src/main/java/org/jackhuang/hmcl/util/io/Unzipper.java
@@ -152,7 +152,7 @@ public void unzip() throws IOException {
152
}
153
154
155
- if (entryCount == 0 && !terminateIfSubDirectoryNotExists) {
+ if (entryCount == 0 && !"/".equals(subDirectory) && !terminateIfSubDirectoryNotExists) {
156
throw new NoSuchFileException("Subdirectory " + subDirectory + " does not exist in the zip file.");
157
158
0 commit comments