Provides shell-style pattern matching and globbing for ReadablePath.
| 62 | |
| 63 | |
| 64 | class _PathGlobber(_GlobberBase): |
| 65 | """Provides shell-style pattern matching and globbing for ReadablePath. |
| 66 | """ |
| 67 | |
| 68 | @staticmethod |
| 69 | def lexists(path): |
| 70 | return path.info.exists(follow_symlinks=False) |
| 71 | |
| 72 | @staticmethod |
| 73 | def scandir(path): |
| 74 | return ((child.info, child.name, child) for child in path.iterdir()) |
| 75 | |
| 76 | @staticmethod |
| 77 | def concat_path(path, text): |
| 78 | return path.with_segments(vfspath(path) + text) |
| 79 | |
| 80 | stringify_path = staticmethod(vfspath) |
| 81 | |
| 82 | |
| 83 | class _JoinablePath(ABC): |
no outgoing calls
no test coverage detected
searching dependent graphs…