(path)
| 529 | |
| 530 | @staticmethod |
| 531 | def scandir(path): |
| 532 | # We must close the scandir() object before proceeding to |
| 533 | # avoid exhausting file descriptors when globbing deep trees. |
| 534 | with os.scandir(path) as scandir_it: |
| 535 | entries = list(scandir_it) |
| 536 | return ((entry, entry.name, entry.path) for entry in entries) |
| 537 | |
| 538 | |
| 539 | class _PathGlobber(_GlobberBase): |