code: def keep_folder(raw_path):
      
      keep = True
      for pattern in DIR_EXCLUDE_PATTERNS:
          if pattern in raw_path:
              LOGGER.debug('rejecting', raw_path)
              keep = False
      return keep
docs: Keep only folders that don't contain patterns in `DIR_EXCLUDE_PATTERNS`.