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