MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / pull_snapshots

Method pull_snapshots

python/collaboration/file.py:335–343  ·  view source on GitHub ↗

Pull the list of Snapshots from the Remote. :param progress: Function to call for progress updates :raises: RuntimeError if there was an error pulling snapshots

(self, progress: 'util.ProgressFuncType' = util.nop)

Source from the content-addressed store, hash-verified

333 return snapshot.CollabSnapshot(value)
334
335 def pull_snapshots(self, progress: 'util.ProgressFuncType' = util.nop):
336 """
337 Pull the list of Snapshots from the Remote.
338
339 :param progress: Function to call for progress updates
340 :raises: RuntimeError if there was an error pulling snapshots
341 """
342 if not core.BNRemoteFilePullSnapshots(self._handle, util.wrap_progress(progress), None):
343 raise RuntimeError(util._last_error())
344
345 def create_snapshot(self, name: str, contents: bytes, analysis_cache_contents: bytes, file: bytes, parent_ids: List[str], progress: 'util.ProgressFuncType' = util.nop) -> 'snapshot.CollabSnapshot':
346 """

Callers 2

snapshotsMethod · 0.95
get_snapshot_by_idMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected