Return True if the path is relative to another path or False.
(self, other)
| 501 | return self._from_parsed_parts('', '', parts) |
| 502 | |
| 503 | def is_relative_to(self, other): |
| 504 | """Return True if the path is relative to another path or False. |
| 505 | """ |
| 506 | if not hasattr(other, 'with_segments'): |
| 507 | other = self.with_segments(other) |
| 508 | return other == self or other in self.parents |
| 509 | |
| 510 | def is_absolute(self): |
| 511 | """True if the path is absolute (has both a root and, if applicable, |