def __check_to_permit(self, entry_type, entry_filename):
rules = self.__filter_rules[entry_type]<EOL>for pattern in rules[fss.constants.FILTER_INCLUDE]:<EOL><INDENT>if fnmatch.fnmatch(entry_filename, pattern):<EOL><INDENT>_LOGGER_FILTER.debug("<STR_LIT>"<EOL>"<STR_LIT>", <EOL>entry_type, pattern, entry_filename)<EOL>return True<EOL><DEDENT><DEDENT>for pattern in rules[fss.constants.FILTER_EXCLUDE]:<EOL><INDENT>if fnmatch.fnmatch(entry_filename, pattern):<EOL><INDENT>_LOGGER_FILTER.debug("<STR_LIT>"<EOL>"<STR_LIT>", <EOL>entry_type, pattern, entry_filename)<EOL>return False<EOL><DEDENT><DEDENT>_LOGGER_FILTER.debug("<STR_LIT>", <EOL>entry_type, entry_filename)<EOL>return True<EOL>
Applying the filter rules.