(cls, path: str)
| 172 | |
| 173 | @classmethod |
| 174 | def parts(cls, path: str) -> tuple[str, ...]: |
| 175 | ret = [] |
| 176 | while True: |
| 177 | path, part = posixpath.split(path) |
| 178 | |
| 179 | if part: |
| 180 | ret.append(part) |
| 181 | continue |
| 182 | |
| 183 | if path: |
| 184 | ret.append(path) |
| 185 | |
| 186 | break |
| 187 | |
| 188 | ret.reverse() |
| 189 | |
| 190 | return tuple(ret) |
| 191 | |
| 192 | def normpath(self, path: str) -> str: |
| 193 | return posixpath.normpath(path) |
no test coverage detected