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

Function _join

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

Source from the content-addressed store, hash-verified

228 return stat.S_ISDIR(st.st_mode)
229
230def _join(dirname, basename):
231 # It is common if dirname or basename is empty
232 if not dirname or not basename:
233 return dirname or basename
234 return os.path.join(dirname, basename)
235
236magic_check = re.compile('([*?[])')
237magic_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