mirror of
https://github.com/revanced/smali.git
synced 2025-05-20 16:07:05 +02:00
Fix an issue when there's a dir with the same base name as a class path entry
This commit is contained in:
parent
7e58d497ef
commit
5c6cad2822
@ -178,7 +178,7 @@ public class ClassPath {
|
||||
for (String ext: new String[]{"", ".odex", ".jar", ".apk", ".zip"}) {
|
||||
File file = new File(classPathDir, baseEntryName + ext);
|
||||
|
||||
if (file.exists()) {
|
||||
if (file.exists() && file.isFile()) {
|
||||
if (!file.canRead()) {
|
||||
System.err.println(String.format(
|
||||
"warning: cannot open %s for reading. Will continue looking.", file.getPath()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user