MCPcopy
hub / github.com/borgbackup/borg / add_child

Method add_child

src/borg/hlfuse.py:57–61  ·  view source on GitHub ↗

Add a child entry, lazily allocating the children dict if needed.

(self, name, child)

Source from the content-addressed store, hash-verified

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."""

Callers 3

_create_filesystemMethod · 0.80
_process_archiveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected