Created
December 6, 2012 19:27
-
-
Save ctrlshifttee/4227536 to your computer and use it in GitHub Desktop.
Return an array of matching files
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
// Returns an array of matching files | |
File[] matchingFiles = directory.listFiles(new FileFilter() { | |
@Override | |
public boolean accept(File pathname) { | |
return pathname.getName().equals(FileName); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment