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

Method select_from

tools/python-3.11.9-amd64/Lib/pathlib.py:313–322  ·  view source on GitHub ↗

Iterate over all child paths of `parent_path` matched by this selector. This can contain parent_path itself.

(self, parent_path)

Source from the content-addressed store, hash-verified

311 self.dironly = False
312
313 def select_from(self, parent_path):
314 """Iterate over all child paths of `parent_path` matched by this
315 selector. This can contain parent_path itself."""
316 path_cls = type(parent_path)
317 is_dir = path_cls.is_dir
318 exists = path_cls.exists
319 scandir = path_cls._scandir
320 if not is_dir(parent_path):
321 return iter([])
322 return self._select_from(parent_path, is_dir, exists, scandir)
323
324
325class _TerminatingSelector:

Callers 2

globMethod · 0.45
rglobMethod · 0.45

Calls 2

typeClass · 0.50
_select_fromMethod · 0.45

Tested by

no test coverage detected