MCPcopy Index your code
hub / github.com/RustPython/RustPython / iterdir

Method iterdir

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

is_dirMethod · 0.95
filterFunction · 0.85
namelistMethod · 0.45

Tested by

no test coverage detected