MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / add_path_to_tree

Function add_path_to_tree

tools/targets/vsc.py:55–61  ·  view source on GitHub ↗
(tree, path)

Source from the content-addressed store, hash-verified

53
54
55def add_path_to_tree(tree, path):
56 parts = path.split(os.sep)
57 current_level = tree
58 for part in parts:
59 if part not in current_level:
60 current_level[part] = {}
61 current_level = current_level[part]
62
63
64def build_tree(paths):

Callers 1

build_treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected