fix a bug if destination is directory

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1147 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
jochen 26 years ago
parent ae9c23f5ec
commit 74acab5ec7
  1. 2
      jode/jode/Decompiler.java

@ -320,7 +320,7 @@ public class Decompiler {
if (destZip != null) {
writer.flush();
destZip.putNextEntry(new ZipEntry(filename));
} else if (writer == null) {
} else if (destDir != null) {
File file = new File (destDir, filename);
File directory = new File(file.getParent());
if (!directory.exists() && !directory.mkdirs()) {

Loading…
Cancel
Save