The logical parent of the path.
(self)
| 382 | |
| 383 | @property |
| 384 | def parent(self): |
| 385 | """The logical parent of the path.""" |
| 386 | drv = self.drive |
| 387 | root = self.root |
| 388 | tail = self._tail |
| 389 | if not tail: |
| 390 | return self |
| 391 | return self._from_parsed_parts(drv, root, tail[:-1]) |
| 392 | |
| 393 | @property |
| 394 | def parents(self): |
nothing calls this directly
no test coverage detected