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

Method process_file

src/borg/archive.py:1646–1658  ·  view source on GitHub ↗
(self, *, tarinfo, status, type, tar)

Source from the content-addressed store, hash-verified

1644 return status
1645
1646 def process_file(self, *, tarinfo, status, type, tar):
1647 with self.create_helper(tarinfo, status, type) as (item, status):
1648 self.print_file_status(status, item.path)
1649 status = None # we already printed the status
1650 fd = tar.extractfile(tarinfo)
1651 self.process_file_chunks(
1652 item, self.cache, self.stats, self.show_progress, backup_io_iter(self.chunker.chunkify(fd))
1653 )
1654 item.get_size(memorize=True, from_chunks=True)
1655 self.stats.nfiles += 1
1656 # we need to remember ALL files, see HardLinkManager.__doc__
1657 self.hlm.remember(id=item.path, info=item.chunks)
1658 return status
1659
1660
1661def valid_msgpacked_dict(d, keys_serialized):

Callers 2

_import_tarMethod · 0.95
_process_anyMethod · 0.45

Calls 6

create_helperMethod · 0.95
backup_io_iterFunction · 0.85
print_file_statusMethod · 0.80
process_file_chunksMethod · 0.80
rememberMethod · 0.80
chunkifyMethod · 0.45

Tested by

no test coverage detected