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

Method __init__

src/borg/legacyrepository.py:1252–1260  ·  view source on GitHub ↗
(self, path, limit, segments_per_dir, capacity=90)

Source from the content-addressed store, hash-verified

1250 ENTRY_HASH_SIZE = 8
1251
1252 def __init__(self, path, limit, segments_per_dir, capacity=90):
1253 self.path = path
1254 self.fds = LRUCache(capacity, dispose=self._close_fd)
1255 self.segment = 0
1256 self.limit = limit
1257 self.segments_per_dir = segments_per_dir
1258 self.offset = 0
1259 self._write_fd = None
1260 self._fds_cleaned = 0
1261
1262 def close(self):
1263 self.close_segment()

Callers 1

__init__Method · 0.45

Calls 1

LRUCacheClass · 0.85

Tested by

no test coverage detected