mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-04 18:12:54 +01:00
DirUtil: fixed exception when decompiling with -r and no res folder exists in the apk
This commit is contained in:
parent
0ece6cf1b3
commit
1fd8a0c361
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user