Provides shell-style pattern matching and globbing for pathlib paths.
| 537 | |
| 538 | |
| 539 | class _PathGlobber(_GlobberBase): |
| 540 | """Provides shell-style pattern matching and globbing for pathlib paths. |
| 541 | """ |
| 542 | |
| 543 | @staticmethod |
| 544 | def lexists(path): |
| 545 | return path.info.exists(follow_symlinks=False) |
| 546 | |
| 547 | @staticmethod |
| 548 | def scandir(path): |
| 549 | return ((child.info, child.name, child) for child in path.iterdir()) |
| 550 | |
| 551 | @staticmethod |
| 552 | def concat_path(path, text): |
| 553 | return path.with_segments(str(path) + text) |
no outgoing calls
no test coverage detected