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

Method find_inode

src/borg/fuse.py:360–365  ·  view source on GitHub ↗
(self, path, prefix=[])

Source from the content-addressed store, hash-verified

358 return ino
359
360 def find_inode(self, path, prefix=[]):
361 segments = prefix + path.split(b"/")
362 inode = 1
363 for segment in segments:
364 inode = self.contents[inode][segment]
365 return inode
366
367 def _process_archive(self, archive_id, prefix=[]):
368 """Build FUSE inode hierarchy from archive metadata"""

Callers 2

_process_archiveMethod · 0.95
_process_leafMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected