Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/rt-thread
/ filt_tree
Function
filt_tree
tools/targets/vsc.py:48–52 ·
view source on GitHub ↗
(tree)
Source
from the content-addressed store, hash-verified
46
47
48
def
filt_tree(tree):
49
key, subtree = find_first_node_with_two_children(tree)
50
if
key:
51
return
{key: subtree}
52
return
{}
53
54
55
def
add_path_to_tree(tree, path):
Callers
1
command_json_to_workspace
Function · 0.85
Calls
1
find_first_node_with_two_children
Function · 0.85
Tested by
no test coverage detected