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