MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / iterdir

Method iterdir

tools/python-3.11.9-amd64/Lib/zipfile.py:2490–2494  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2488 return self.at in self.root._name_set()
2489
2490 def iterdir(self):
2491 if not self.is_dir():
2492 raise ValueError("Can't listdir a file")
2493 subs = map(self._next, self.root.namelist())
2494 return filter(self._is_child, subs)
2495
2496 def __str__(self):
2497 return posixpath.join(self.root.filename, self.at)

Callers

nothing calls this directly

Calls 4

is_dirMethod · 0.95
filterFunction · 0.70
mapFunction · 0.50
namelistMethod · 0.45

Tested by

no test coverage detected