code: def exclude_file(self, file):
          
          for pattern in self.compiled_exclude_files:
              if (pattern.match(file)):
                  return(True)
          return(False)
docs: True if file should be exclude based on name pattern.