True if the path is absolute (has both a root and, if applicable, a drive).
(self)
| 790 | return _PathParents(self) |
| 791 | |
| 792 | def is_absolute(self): |
| 793 | """True if the path is absolute (has both a root and, if applicable, |
| 794 | a drive).""" |
| 795 | if not self._root: |
| 796 | return False |
| 797 | return not self._flavour.has_drv or bool(self._drv) |
| 798 | |
| 799 | def is_reserved(self): |
| 800 | """Return True if the path contains one of the special names reserved |