If the given TreeNode directory NODE contains a child named NAME, return the child; else, return None.
(self, name)
| 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 |
no outgoing calls
no test coverage detected