This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String root_dir = base + "/file_freedb/freedb-complete-20090101/"; | |
FileFilter directoryFilter = new FileFilter() { | |
public boolean accept(File file) { | |
return file.isDirectory(); | |
} | |
}; | |
File[] files = new File(root_dir).listFiles(directoryFilter); | |
for (File file : files) { | |
if (file.isDirectory()) { | |
System.out.println("directory:" + file); | |
} else { | |
System.out.println("file:" + file); | |
} | |
} | |
Nessun commento:
Posta un commento