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

Method is_relative_to

tools/python-3.11.9-amd64/Lib/pathlib.py:736–743  ·  view source on GitHub ↗

Return True if the path is relative to another path or False.

(self, *other)

Source from the content-addressed store, hash-verified

734 abs_parts[n:])
735
736 def is_relative_to(self, *other):
737 """Return True if the path is relative to another path or False.
738 """
739 try:
740 self.relative_to(*other)
741 return True
742 except ValueError:
743 return False
744
745 @property
746 def parts(self):

Callers

nothing calls this directly

Calls 1

relative_toMethod · 0.95

Tested by

no test coverage detected