Created
March 21, 2011 15:50
-
-
Save newgeekorder/879664 to your computer and use it in GitHub Desktop.
commons io list filtered directory
This file contains hidden or 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
FilenameFilter fileFilter = new SuffixFileFilter(".html"); | |
File resultDir = new File(testPath); | |
String[] results = resultDir.list(fileFilter); | |
for (int i = 0; i < results.length; i++) { | |
System.out.println(results[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment