zip4j icon indicating copy to clipboard operation
zip4j copied to clipboard

APK related problems

Open KingMahmud opened this issue 3 years ago • 2 comments
trafficstars

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

KingMahmud avatar Dec 30 '21 04:12 KingMahmud

Hi Mahmud, thanks for your positive feedback of zip4j. I will look into this issue and update the thread here.

srikanth-lingala avatar Mar 09 '22 09:03 srikanth-lingala

Thanks sir😊

KingMahmud avatar Mar 09 '22 12:03 KingMahmud