MCPcopy
hub / github.com/conda/conda / join

Function join

conda/common/url.py:301–303  ·  view source on GitHub ↗
(*args: str)

Source from the content-addressed store, hash-verified

299
300
301def join(*args: str):
302 start = "/" if not args[0] or args[0].startswith("/") else ""
303 return start + "/".join(y for y in (x.strip("/") for x in args if x) if y)
304
305
306join_url = join

Callers 15

test_local_channelFunction · 0.90
walk_prefixFunction · 0.85
clone_envFunction · 0.85
wrap_subprocess_callFunction · 0.85
get_comspecFunction · 0.85
__init__Method · 0.85
__init__Method · 0.85
check_files_in_packageFunction · 0.85
_add_prefix_to_pathMethod · 0.85
_get_activate_scriptsMethod · 0.85

Calls 1

startswithMethod · 0.45

Tested by 15

test_local_channelFunction · 0.72
hardlink_supportedFunction · 0.68
softlink_supportedFunction · 0.68
test_yield_linesFunction · 0.68
test_read_no_linkFunction · 0.68
test_posix_basicFunction · 0.68
test_cmd_exe_basicFunction · 0.68
test_csh_basicFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…