This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14620|Reply: 1

[Source] java unzips nested files (with empty folders) with zipInputStream

[Copy link]
Posted on 7/5/2019 10:41:48 AM | | |
Note:

Use zipEntry.isDirectory() to determine whether a folder is, according to the source code, it can only judge those that end in /, not those that end in \

The code is as follows: Enter the extraction path and the compressed file name (with the path, e.g. D:/test.zip)






Previous:ubuntu vsftpd 530 Login incorrect root cause and solution
Next:CentOS7 View and turn off the firewall
 Landlord| Posted on 7/5/2019 10:47:59 AM |
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com