code: def _compile(self, file_pattern, folder_exclude_pattern):
          
  
          if not isinstance(file_pattern, _wcparse.WcRegexp):
              file_pattern = self._compile_wildcard(file_pattern, self.file_pathname)
  
          if not isinstance(folder_exclude_pattern, _wcparse.WcRegexp):
  
              folder_exclude_pattern = self._compile_wildcard(folder_exclude_pattern, self.dir_pathname)
  
          return file_pattern, folder_exclude_pattern
docs: Compile patterns.