MCPcopy
hub / github.com/cool-RR/PySnooper / iterdir

Method iterdir

tests/mini_toolbox/pathlib.py:1276–1288  ·  view source on GitHub ↗

Iterate over the files in this directory. Does not yield any result for the special paths '.' and '..'.

(self)

Source from the content-addressed store, hash-verified

1274 return st1 == st2
1275
1276 def iterdir(self):
1277 """Iterate over the files in this directory. Does not yield any
1278 result for the special paths '.' and '..'.
1279 """
1280 if self._closed:
1281 self._raise_closed()
1282 for name in self._accessor.listdir(self):
1283 if name in ('.', '..'):
1284 # Yielding a path object for these makes little sense
1285 continue
1286 yield self._make_child_relpath(name)
1287 if self._closed:
1288 self._raise_closed()
1289
1290 def glob(self, pattern):
1291 """Iterate over this subtree and yield all existing files (of any

Callers

nothing calls this directly

Calls 2

_raise_closedMethod · 0.95
_make_child_relpathMethod · 0.95

Tested by

no test coverage detected