code: def check_file(self, fs, info):
          # type: (FS, Info) -> bool
          
  
          if self.exclude is not None and fs.match(self.exclude, info.name):
              return False
          return fs.match(self.filter, info.name)
docs: Check if a filename should be included.
  
          Override to exclude files from the walk.
  
          Arguments:
              fs (FS): A filesystem instance.
              info (Info): A resource info object.
  
          Returns:
              bool: `True` if the file should be included.