Add a child entry, lazily allocating the children dict if needed.
(self, name, child)
| 55 | self.children = None # name (bytes) -> DirEntry, lazily allocated |
| 56 | |
| 57 | def add_child(self, name, child): |
| 58 | """Add a child entry, lazily allocating the children dict if needed.""" |
| 59 | if self.children is None: |
| 60 | self.children = {} |
| 61 | self.children[name] = child |
| 62 | |
| 63 | def get_child(self, name): |
| 64 | """Get a child entry by name, returns None if not found.""" |
no outgoing calls
no test coverage detected