Java: `A` Archive attribute missing while creating zip programmatically
问题 We are dealing with the decompression libraries/utility that uses attribute to check for the presence of directories/files within the zip. Problem is that we are not able to set archive bit for a zip while creation. When we create zip programmatically, it wash out previous attributes as well. We will try to set archive bit with below mentioned steps but not getting desired result so far: 1. Parse each zip entry and getExtra byte[]. 2. Use Int value=32 and perform bitwise 'OR' operation. 3.