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

Method seek

src/borg/platform/base.py:187–188  ·  view source on GitHub ↗
(self, offset, whence=io.SEEK_SET)

Source from the content-addressed store, hash-verified

185 return self.f.read(*args, **kwargs)
186
187 def seek(self, offset, whence=io.SEEK_SET):
188 return self.f.seek(offset, whence)
189
190 def tell(self):
191 return self.f.tell()

Callers 15

is_committed_segmentMethod · 0.45
get_segment_magicMethod · 0.45
iter_objectsMethod · 0.45
readMethod · 0.45
_readMethod · 0.45
flushMethod · 0.45
extract_itemMethod · 0.45
getMethod · 0.45
iter_archive_itemsMethod · 0.45
_corrupt_indexFunction · 0.45
corrupt_objectFunction · 0.45

Calls

no outgoing calls

Tested by 11

_corrupt_indexFunction · 0.36
corrupt_objectFunction · 0.36
test_repair_no_commitsFunction · 0.36
test_multiple_loggersFunction · 0.36
test_cache_corruptionMethod · 0.36
test_syncfile_seek_tellFunction · 0.36
is_sparseFunction · 0.36
test_sparse_fileFunction · 0.36