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

Method as_dict

src/borg/archive.py:123–130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121 )
122
123 def as_dict(self):
124 return {
125 "original_size": FileSize(self.osize, iec=self.iec),
126 "nfiles": self.nfiles,
127 "hashing_time": self.hashing_time,
128 "chunking_time": self.chunking_time,
129 "files_stats": self.files_stats,
130 }
131
132 def as_raw_dict(self):
133 return {"size": self.osize, "nfiles": self.nfiles}

Callers 15

show_progressMethod · 0.95
set_inodeMethod · 0.80
_create_filesystemMethod · 0.80
_process_archiveMethod · 0.80
upgrade_itemMethod · 0.80
writeMethod · 0.80
addMethod · 0.80
infoMethod · 0.80
saveMethod · 0.80
set_metaMethod · 0.80
rebuild_archivesMethod · 0.80

Calls 1

FileSizeClass · 0.85

Tested by 8

getattr_setattrFunction · 0.64
test_item_emptyFunction · 0.64
test_item_int_propertyFunction · 0.64
test_item_list_propertyFunction · 0.64
test_item_dict_propertyFunction · 0.64
test_transfer_upgradeFunction · 0.64