(self, parent_path, is_dir, exists, scandir)
| 664 | _Selector.__init__(self, child_parts) |
| 665 | |
| 666 | def _select_from(self, parent_path, is_dir, exists, scandir): |
| 667 | def try_iter(): |
| 668 | path = parent_path._make_child_relpath(self.name) |
| 669 | if (is_dir if self.dironly else exists)(path): |
| 670 | for p in self.successor._select_from( |
| 671 | path, is_dir, exists, scandir): |
| 672 | yield p |
| 673 | |
| 674 | def except_iter(exc): |
| 675 | return |
| 676 | yield |
| 677 | |
| 678 | for x in _try_except_permissionerror_iter(try_iter, except_iter): |
| 679 | yield x |
| 680 | |
| 681 | |
| 682 | class _WildcardSelector(_Selector): |
no test coverage detected