Skip to content

Instantly share code, notes, and snippets.

@ctrlshifttee
Created December 6, 2012 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctrlshifttee/4227536 to your computer and use it in GitHub Desktop.
Save ctrlshifttee/4227536 to your computer and use it in GitHub Desktop.
Return an array of matching files
// 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