True if the path is absolute (has both a root and, if applicable, a drive).
(self)
| 1127 | return _PathParents(self) |
| 1128 | |
| 1129 | def is_absolute(self): |
| 1130 | """True if the path is absolute (has both a root and, if applicable, |
| 1131 | a drive).""" |
| 1132 | if not self._root: |
| 1133 | return False |
| 1134 | return not self._flavour.has_drv or bool(self._drv) |
| 1135 | |
| 1136 | def is_reserved(self): |
| 1137 | """Return True if the path contains one of the special names reserved |