MCPcopy
hub / github.com/cool-RR/PySnooper / is_absolute

Method is_absolute

tests/mini_toolbox/pathlib.py:1129–1134  ·  view source on GitHub ↗

True if the path is absolute (has both a root and, if applicable, a drive).

(self)

Source from the content-addressed store, hash-verified

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

Callers 3

as_uriMethod · 0.95
resolveMethod · 0.80
absoluteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected