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

Method get_child

test/tree.py:66–74  ·  view source on GitHub ↗

If the given TreeNode directory NODE contains a child named NAME, return the child; else, return None.

(self, name)

Source from the content-addressed store, hash-verified

64 newchild.path = os.path.join(self.path, newchild.name)
65
66 def get_child(self, name):
67 """
68 If the given TreeNode directory NODE contains a child named NAME,
69 return the child; else, return None.
70
71 """
72 for n in self.children:
73 if n.name == name:
74 return n
75
76 def is_file(self):
77 return self.children is None

Callers 1

_do_tree_differenceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected