MCPcopy Create free account
hub / github.com/boostorg/build / split

Function split

v2/util/path.py:883–887  ·  view source on GitHub ↗
(p, rest=[])

Source from the content-addressed store, hash-verified

881# The relpath functionality is written by
882# Cimarron Taylor
883def split(p, rest=[]):
884 (h,t) = os.path.split(p)
885 if len(h) < 1: return [t]+rest
886 if len(t) < 1: return [h]+rest
887 return split(h,[t]+rest)
888
889def commonpath(l1, l2, common=[]):
890 if len(l1) < 1: return (common, l1, l2)

Callers 3

match_exactFunction · 0.85
match_reFunction · 0.85
relpathFunction · 0.85

Calls

no outgoing calls

Tested by 2

match_exactFunction · 0.68
match_reFunction · 0.68