DirUtil: fixed exception when decompiling with -r and no res folder exists in the apk

This commit is contained in:
chrisch1974 2014-05-21 10:23:28 +02:00 committed by Connor Tumbleson
parent 0ece6cf1b3
commit 1fd8a0c361

View File

@ -76,6 +76,9 @@ public class DirUtil {
OS.rmdir(new File(out, fileName));
in.getDir(fileName).copyToDir(new File(out, fileName));
} else {
if (fileName.equals("res") && !in.containsFile(fileName)) {
return;
}
File outFile = new File(out, fileName);
outFile.getParentFile().mkdirs();
BrutIO.copyAndClose(in.getFileInput(fileName),