MCPcopy Index your code
hub / github.com/python/cpython / joinpath

Method joinpath

Lib/importlib/resources/readers.py:98–104  ·  view source on GitHub ↗
(self, *descendants)

Source from the content-addressed store, hash-verified

96 return False
97
98 def joinpath(self, *descendants):
99 try:
100 return super().joinpath(*descendants)
101 except abc.TraversalError:
102 # One of the paths did not resolve (a directory does not exist).
103 # Just return something that will not exist.
104 return self._paths[0].joinpath(*descendants)
105
106 @classmethod
107 def _follow(cls, children):

Callers 6

test_join_pathMethod · 0.95
resource_pathMethod · 0.45
is_resourceMethod · 0.45
resource_pathMethod · 0.45

Calls 1

superClass · 0.85

Tested by 3

test_join_pathMethod · 0.76