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

Method _create_node

src/borg/hlfuse.py:115–119  ·  view source on GitHub ↗
(self, item=None, parent=None)

Source from the content-addressed store, hash-verified

113 self.chunks_cache = LRUCache(capacity=10)
114
115 def _create_node(self, item=None, parent=None):
116 self.current_ino += 1
117 if item is not None:
118 self.set_inode(self.current_ino, item)
119 return DirEntry(self.current_ino, parent)
120
121 def get_inode(self, ino):
122 packed = self.inodes.get(ino)

Callers 4

__init__Method · 0.95
_create_filesystemMethod · 0.95
_process_archiveMethod · 0.95

Calls 2

set_inodeMethod · 0.95
DirEntryClass · 0.85

Tested by

no test coverage detected