在java中验证zip文件 [英] Validate zip file in java
本文介绍了在java中验证zip文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 Java 中使用 zip4j 压缩了一个包含文件和文件夹的文件夹.我想验证为 -
I have zipped a folder containing files and folders using zip4j in Java. I want to validate created zip for -
- 压缩前选择的文件数量?
- 压缩过程中文件是否未损坏?
谢谢
推荐答案
我要做的是将文件夹解压到不同的位置,使用标准的 POSIX find
和 cmp
命令比较原始目录和提取目录中的相应文件.
What I'd do is extract the folder to a different location, use the standard POSIX find
and cmp
commands to compare the corresponding files in the original and extracted directories.
这篇关于在java中验证zip文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文