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

Method joinpath

Lib/pathlib/types.py:195–201  ·  view source on GitHub ↗

Combine this path with one or several arguments, and return a new path representing either a subpath (if all arguments are relative paths) or a totally different path (if one of the arguments is anchored).

(self, *pathsegments)

Source from the content-addressed store, hash-verified

193 return tuple(reversed(parts))
194
195 def joinpath(self, *pathsegments):
196 """Combine this path with one or several arguments, and return a
197 new path representing either a subpath (if all arguments are relative
198 paths) or a totally different path (if one of the arguments is
199 anchored).
200 """
201 return self.with_segments(vfspath(self), *pathsegments)
202
203 def __truediv__(self, key):
204 try:

Callers 4

globMethod · 0.45
walkMethod · 0.45
copyMethod · 0.45
_copy_fromMethod · 0.45

Calls 2

with_segmentsMethod · 0.95
vfspathFunction · 0.90

Tested by

no test coverage detected