递归地使用一个包含Java中任意数量的文件和子目录的目录? [英] Recursively ZIP a directory containing any number of files and subdirectories in Java?
本文介绍了递归地使用一个包含Java中任意数量的文件和子目录的目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
有没有一个简单的方法来递归地ZIP一个目录,可能包含或不包含任何数量的文件和任何数量的子目录? / div>
您可以使用:
http:/ /java.sun.com/j2se/1.4.2/docs/api/
和:
http://www.java-forums.org/new-java/4123-how-do -ou-recursively-traverse-through-file-folders.html
Is there an easy way to recursively ZIP a directory that may or may not contain any number of files and any number of levels of subdirectories?
解决方案
You can use: http://java.sun.com/j2se/1.4.2/docs/api/ and: http://www.java-forums.org/new-java/4123-how-do-you-recursively-traverse-through-file-folders.html
这篇关于递归地使用一个包含Java中任意数量的文件和子目录的目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文