public boolean fileMatchesRules ( File file ) { try { if ( file . exists ( ) ) { if ( includeFilesContainingText . length == 0 && excludeFilesContainingText . length == 0 ) { return fileMatchesRules ( getComparableFileName ( file ) ) ; } else { return fileMatchesRules ( getComparableFileName ( file ) , FileSupport . getTextFileFromFS ( file ) ) ; } } } catch ( IOException ioe ) { //at the moment file does not match rules } return false ; }
Checks if file matches rules .