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

Function print_file_info

python/collaboration/examples/multitool.py:72–86  ·  view source on GitHub ↗
(file: RemoteFile, extended=False)

Source from the content-addressed store, hash-verified

70 print(f"{project.remote.name}/{project.name} @ {project.url} (id: {project.id})")
71
72def print_file_info(file: RemoteFile, extended=False):
73 if extended:
74 print(f"Name: {file.name}\n"
75 f"Description: {file.description}\n"
76 f"Id: {file.id}\n"
77 f"Url: {file.url}\n"
78 f"Created date: {file.created}\n"
79 f"Last modified date: {file.last_modified}\n"
80 f"Last snapshot date: {file.last_snapshot}\n"
81 f"Contents hash: {file.hash}\n"
82 f"Contents size: {file.size}\n"
83 f"Default path on disk: {file.default_path}\n"
84 f"Snapshot count: {len(file.snapshots)}")
85 else:
86 print(f"{file.remote.name}/{file.project.name}/{file.name} @ {file.url} (id: {file.id})")
87
88
89def main():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected