The logical parent of the path.
(self)
| 214 | |
| 215 | @property |
| 216 | def parent(self): |
| 217 | """The logical parent of the path.""" |
| 218 | path = vfspath(self) |
| 219 | parent = self.parser.split(path)[0] |
| 220 | if path != parent: |
| 221 | return self.with_segments(parent) |
| 222 | return self |
| 223 | |
| 224 | @property |
| 225 | def parents(self): |
nothing calls this directly
no test coverage detected