MCPcopy
hub / github.com/volcengine/OpenViking / join

Method join

openviking_cli/utils/uri.py:174–185  ·  view source on GitHub ↗

Join URI parts, handling slashes correctly.

(self, part: str)

Source from the content-addressed store, hash-verified

172 return False
173
174 def join(self, part: str) -> "VikingURI":
175 """
176 Join URI parts, handling slashes correctly.
177 """
178 part = part.strip("/") if part else ""
179 if not part:
180 return self
181
182 full = self.full_path.rstrip("/")
183 if full:
184 return VikingURI(f"{self.SCHEME}://{full}/{part}")
185 return VikingURI(f"{self.SCHEME}://{part}")
186
187 @staticmethod
188 def build(scope: str, *path_parts: str) -> str:

Callers 15

_build_extension_implMethod · 0.45
check_native_engineFunction · 0.45
_embedding_probe_labelFunction · 0.45
_masked_inputFunction · 0.45
_shutdown_loopFunction · 0.45
run_asyncFunction · 0.45
buildMethod · 0.45
_validate_backendMethod · 0.45

Calls 1

VikingURIClass · 0.70