Skip to content

Instantly share code, notes, and snippets.

@ctrlshifttee
ctrlshifttee / matchFileArray
Created December 6, 2012 19:27
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);
}
});