mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 06:14: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);
|
LocalFileHeader lfh = localFileHeaderList.get(i);
|
||||||
CentralEntryHeader ceh = centralEntryHeaderList.get(i);
|
CentralEntryHeader ceh = centralEntryHeaderList.get(i);
|
||||||
ArchiveEntry archiveEntry = new ArchiveEntry(lfh, ceh);
|
ArchiveEntry archiveEntry = new ArchiveEntry(lfh, ceh);
|
||||||
|
if(archiveEntry.isDirectory()){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
entryList.add(archiveEntry);
|
entryList.add(archiveEntry);
|
||||||
}
|
}
|
||||||
this.entryList = entryList;
|
this.entryList = entryList;
|
||||||
@ -70,6 +73,9 @@ public class Archive {
|
|||||||
List<ArchiveEntry> entryList = this.entryList;
|
List<ArchiveEntry> entryList = this.entryList;
|
||||||
for(int i=0; i<entryList.size(); i++){
|
for(int i=0; i<entryList.size(); i++){
|
||||||
ArchiveEntry entry = entryList.get(i);
|
ArchiveEntry entry = entryList.get(i);
|
||||||
|
if(entry.isDirectory()){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
ArchiveEntrySource entrySource = new ArchiveEntrySource(zipInput, entry);
|
ArchiveEntrySource entrySource = new ArchiveEntrySource(zipInput, entry);
|
||||||
map.put(entrySource.getAlias(), entrySource);
|
map.put(entrySource.getAlias(), entrySource);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user