MCPcopy Index your code
hub / github.com/borgbackup/borg / transform

Function transform

src/borg/remote.py:1267–1270  ·  view source on GitHub ↗
(id_, data)

Source from the content-addressed store, hash-verified

1265 return csize, decrypted
1266
1267 def transform(id_, data):
1268 meta, decrypted = repo_objs.parse(id_, data, ro_type=ROBJ_DONTCARE)
1269 csize = meta.get("csize", len(data))
1270 return csize, decrypted
1271
1272 if isinstance(repository, RemoteRepository) or force_cache:
1273 return RepositoryCache(repository, pack, unpack, transform)

Callers

nothing calls this directly

Calls 2

parseMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected