MCPcopy Index your code
hub / github.com/python/cpython / iterdir

Method iterdir

Lib/zipfile/_path/__init__.py:404–408  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

402 return self.at in self.root._name_set()
403
404 def iterdir(self):
405 if not self.is_dir():
406 raise ValueError("Can't listdir a file")
407 subs = map(self._next, self.root.namelist())
408 return filter(self._is_child, subs)
409
410 def match(self, path_pattern):
411 return pathlib.PurePosixPath(self.at).match(path_pattern)

Callers

nothing calls this directly

Calls 3

is_dirMethod · 0.95
filterFunction · 0.50
namelistMethod · 0.45

Tested by

no test coverage detected