Protocol for path info objects, which support querying the file type. Methods may return cached results.
| 51 | |
| 52 | @runtime_checkable |
| 53 | class PathInfo(Protocol): |
| 54 | """Protocol for path info objects, which support querying the file type. |
| 55 | Methods may return cached results. |
| 56 | """ |
| 57 | def exists(self, *, follow_symlinks: bool = True) -> bool: ... |
| 58 | def is_dir(self, *, follow_symlinks: bool = True) -> bool: ... |
| 59 | def is_file(self, *, follow_symlinks: bool = True) -> bool: ... |
| 60 | def is_symlink(self) -> bool: ... |
| 61 | |
| 62 | |
| 63 | class _JoinablePath(ABC): |