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

Function _join

Lib/glob.py:236–240  ·  view source on GitHub ↗
(dirname, basename)

Source from the content-addressed store, hash-verified

234 return stat.S_ISDIR(st.st_mode)
235
236def _join(dirname, basename):
237 # It is common if dirname or basename is empty
238 if not dirname or not basename:
239 return dirname or basename
240 return os.path.join(dirname, basename)
241
242magic_check = re.compile('([*?[])')
243magic_check_bytes = re.compile(b'([*?[])')

Callers 3

_iglobFunction · 0.70
_glob0Function · 0.70
_rlistdirFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…