code: def _ignore_path(cls, path, ignore_list=None, white_list=None):
          
          ignore_list = ignore_list or []
          white_list = white_list or []
          return (cls._matches_patterns(path, ignore_list) and
                  not cls._matches_patterns(path, white_list))
docs: Returns a whether a path should be ignored or not.