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

Function list_chunkindex_hashes

src/borg/cache.py:701–710  ·  view source on GitHub ↗
(repository)

Source from the content-addressed store, hash-verified

699
700
701def list_chunkindex_hashes(repository):
702 hashes = []
703 for info in repository.store_list("cache"):
704 info = ItemInfo(*info) # RPC does not give namedtuple
705 if info.name.startswith("chunks."):
706 hash = info.name.removeprefix("chunks.")
707 hashes.append(hash)
708 hashes = sorted(hashes)
709 logger.debug(f"cached chunk indexes: {hashes}")
710 return hashes
711
712
713def delete_chunkindex_cache(repository):

Callers 3

delete_chunkindex_cacheFunction · 0.85

Calls 2

debugMethod · 0.80
store_listMethod · 0.45

Tested by

no test coverage detected