mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-02 06:54:25 +02: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));
|
OS.rmdir(new File(out, fileName));
|
||||||
in.getDir(fileName).copyToDir(new File(out, fileName));
|
in.getDir(fileName).copyToDir(new File(out, fileName));
|
||||||
} else {
|
} else {
|
||||||
|
if (fileName.equals("res") && !in.containsFile(fileName)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
File outFile = new File(out, fileName);
|
File outFile = new File(out, fileName);
|
||||||
outFile.getParentFile().mkdirs();
|
outFile.getParentFile().mkdirs();
|
||||||
BrutIO.copyAndClose(in.getFileInput(fileName),
|
BrutIO.copyAndClose(in.getFileInput(fileName),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user