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

Method joinpath

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

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

Callers 15

copyMethod · 0.45
moveMethod · 0.45
test_egg_infoMethod · 0.45
test_eggMethod · 0.45
_fixture_on_pathMethod · 0.45
test_read_bytesMethod · 0.45
test_read_textMethod · 0.45
test_module_resourcesMethod · 0.45
executeMethod · 0.45
test_is_fileMethod · 0.45

Calls 1

with_segmentsMethod · 0.95

Tested by 15

test_egg_infoMethod · 0.36
test_eggMethod · 0.36
test_read_bytesMethod · 0.36
test_read_textMethod · 0.36
test_module_resourcesMethod · 0.36
executeMethod · 0.36
test_is_fileMethod · 0.36
test_is_dirMethod · 0.36
test_resource_missingMethod · 0.36