I have series of folders, inside which there are files to be processed.Inside each folder, there are maybe other sub-folders as well, which are to be scanned. I wish to know if there is any way to do that. Whatever open-source code I could find, they were all for scanning only 1 folder.
The directory structure (rough sketch) in my case is as follows:
So far, I just got this:
public static void directory(File dir){
File[] files = dir.listFiles();
for(File file:files){
System.out.println(file.getAbsolutePath());
if(file.listFiles() != null)
directory(file);
}}
Please Help !