code: def ignore_path(path, ignore_list=None, whitelist=None):
      
      if ignore_list is None:
          return True
  
      should_ignore = matches_glob_list(path, ignore_list)
      if whitelist is None:
          return should_ignore
  
      return should_ignore and not matches_glob_list(path, whitelist)
docs: Returns a boolean indicating if a path should be ignored given an
      ignore_list and a whitelist of glob patterns.