@ Override public boolean accept ( File file ) { String name = file . getName ( ) ; if ( FilenameUtils . wildcardMatch ( name , wildcards , caseSensitivity ) ) { return true ; } return false ; }
Checks to see if the filename matches one of the wildcards .