A sequence of this path's logical parents.
(self)
| 204 | |
| 205 | @property |
| 206 | def parents(self): |
| 207 | """A sequence of this path's logical parents.""" |
| 208 | split = self.parser.split |
| 209 | path = str(self) |
| 210 | parent = split(path)[0] |
| 211 | parents = [] |
| 212 | while path != parent: |
| 213 | parents.append(self.with_segments(parent)) |
| 214 | path = parent |
| 215 | parent = split(path)[0] |
| 216 | return tuple(parents) |
| 217 | |
| 218 | def full_match(self, pattern): |
| 219 | """ |
nothing calls this directly
no test coverage detected