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

Method get_for_bv

python/collaboration/file.py:75–86  ·  view source on GitHub ↗

Look up the remote File for a local BinaryView, or None if there is no matching remote File found. :param bv: Local BinaryView :return: Remote File object :rtype: File or None

(bv: 'BinaryView')

Source from the content-addressed store, hash-verified

73
74 @staticmethod
75 def get_for_bv(bv: 'BinaryView') -> Optional['RemoteFile']:
76 """
77 Look up the remote File for a local BinaryView, or None if there is no matching
78 remote File found.
79
80 :param bv: Local BinaryView
81 :return: Remote File object
82 :rtype: File or None
83 """
84 if not bv.file.has_database:
85 return None
86 return RemoteFile.get_for_local_database(bv.file.database)
87
88 @property
89 def core_file(self) -> 'ProjectFile':

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected