I use Google Guava in my code. Starting from the directory, I want to get all the files one at a time (if the current file is a special file, I will do some process inside it), and in the end I will copy them to another directory (with the exception of some directories.)
I know that there is a copy method in Guava, but how can I get all the files under a directory (if there are several directories in the initial directory, I should get the files under it too, and if there is any directory under some of these directories, I must get them too)
PS 1: If you have any suggestions about copying files, please.
PS 2: I think this conversation is related to my question: http://code.google.com/p/guava-libraries/issues/detail?id=578
PS 3: I use Java 6 in my project.
source
share