The logical parent of the path.
(self)
| 195 | |
| 196 | @property |
| 197 | def parent(self): |
| 198 | """The logical parent of the path.""" |
| 199 | path = str(self) |
| 200 | parent = self.parser.split(path)[0] |
| 201 | if path != parent: |
| 202 | return self.with_segments(parent) |
| 203 | return self |
| 204 | |
| 205 | @property |
| 206 | def parents(self): |
nothing calls this directly
no test coverage detected