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

Function remove_first_component

v2/test/load_dir.py:17–24  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

15
16
17def remove_first_component(path):
18 result = [path]
19 while 1:
20 s = os.path.split(result[0])
21 if not s[0]:
22 break
23 result[:1] = list(s)
24 return apply(os.path.join, result[1:])
25
26
27def create_file(arg, dirname, fnames):

Callers 1

create_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected