Iterate over all child paths of `parent_path` matched by this selector. This can contain parent_path itself.
(self, parent_path)
| 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 | |
| 325 | class _TerminatingSelector: |
no test coverage detected