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

Method joinpath

Lib/pathlib/__init__.py:166–172  ·  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

164 return type(self)(*pathsegments)
165
166 def joinpath(self, *pathsegments):
167 """Combine this path with one or several arguments, and return a
168 new path representing either a subpath (if all arguments are relative
169 paths) or a totally different path (if one of the arguments is
170 anchored).
171 """
172 return self.with_segments(self, *pathsegments)
173
174 def __truediv__(self, key):
175 try:

Callers 5

gather_idsFunction · 0.45
finishMethod · 0.45
subdirFunction · 0.45
copyMethod · 0.45
moveMethod · 0.45

Calls 1

with_segmentsMethod · 0.95

Tested by

no test coverage detected