zip4j
zip4j copied to clipboard
APK related problems
Hi Srikanth sir, first of all thank you very much for your amazing zip4j library. Its like a life saver to me. As you know, "apk" files are also a type of archive. So i was trying to use your library to delete/check specific directories. But it didnt work. Example : zip.getFileHeader("assets/") Even if the apk contains the directory, zip4j would return null for this. While for real zip files, it works.
A workaround :
Another problem i faced is while removing entire directories. Example : zip.removeFile("res/") It wont work as well incase of apk archives while working for zips.
A workaround : a for loop with HeaderUtils.getFileHeadersUnderDirectory(zip.getFileHeaders(),"res/") and zip.removeFile(header)
I am not sure if other issues occur with apk, because i still did not face.
Thanks in advance, looking for your reply.
Regards, Mahmud
Hi Mahmud, thanks for your positive feedback of zip4j. I will look into this issue and update the thread here.
Thanks sir😊