mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-29 22:04:25 +02:00
ignore directory entries
This commit is contained in:
parent
ecbb2fca2e
commit
c239585091
@ -52,6 +52,9 @@ public class Archive {
|
||||
LocalFileHeader lfh = localFileHeaderList.get(i);
|
||||
CentralEntryHeader ceh = centralEntryHeaderList.get(i);
|
||||
ArchiveEntry archiveEntry = new ArchiveEntry(lfh, ceh);
|
||||
if(archiveEntry.isDirectory()){
|
||||
continue;
|
||||
}
|
||||
entryList.add(archiveEntry);
|
||||
}
|
||||
this.entryList = entryList;
|
||||
@ -70,6 +73,9 @@ public class Archive {
|
||||
List<ArchiveEntry> entryList = this.entryList;
|
||||
for(int i=0; i<entryList.size(); i++){
|
||||
ArchiveEntry entry = entryList.get(i);
|
||||
if(entry.isDirectory()){
|
||||
continue;
|
||||
}
|
||||
ArchiveEntrySource entrySource = new ArchiveEntrySource(zipInput, entry);
|
||||
map.put(entrySource.getAlias(), entrySource);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user