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

Method get_child

v2/test/tree.py:64–72  ·  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

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

Callers 1

_do_tree_differenceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected