code: def __check_to_permit(self, entry_type, entry_filename):
          
  
          rules = self.__filter_rules[entry_type]
  
          # Should explicitly include?
          for pattern in rules[fss.constants.FILTER_INCLUDE]:
              if fnmatch.fnmatch(entry_filename, pattern):
                  _LOGGER_FILTER.debug("Entry explicitly INCLUDED: [%s] [%s] "
                                       "[%s]", 
                                       entry_type, pattern, entry_filename)
  
                  return True
  
          # Should explicitly exclude?
          for pattern in rules[fss.constants.FILTER_EXCLUDE]:
              if fnmatch.fnmatch(entry_filename, pattern):
                  _LOGGER_FILTER.debug("Entry explicitly EXCLUDED: [%s] [%s] "
                                       "[%s]", 
                                       entry_type, pattern, entry_filename)
  
                  return False
  
          # Implicitly include.
  
          _LOGGER_FILTER.debug("Entry IMPLICITLY included: [%s] [%s]", 
                               entry_type, entry_filename)
  
          return True
docs: Applying the filter rules.