MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / is_absolute

Method is_absolute

tools/python-3.11.9-amd64/Lib/pathlib.py:792–797  ·  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

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

Callers 2

as_uriMethod · 0.95
absoluteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected