MCPcopy Index your code
hub / github.com/RustPython/RustPython / joinpath

Method joinpath

Lib/pathlib/types.py:176–182  ·  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

174 return tuple(reversed(parts))
175
176 def joinpath(self, *pathsegments):
177 """Combine this path with one or several arguments, and return a
178 new path representing either a subpath (if all arguments are relative
179 paths) or a totally different path (if one of the arguments is
180 anchored).
181 """
182 return self.with_segments(str(self), *pathsegments)
183
184 def __truediv__(self, key):
185 try:

Callers 4

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

Calls 2

with_segmentsMethod · 0.95
strFunction · 0.85

Tested by

no test coverage detected