binaryninja::collaboration

Function download_file_with_progress

source
pub fn download_file_with_progress<S: BnStrCompatible, F: ProgressCallback>(
    file: &RemoteFile,
    db_path: S,
    progress: F,
) -> Result<Ref<FileMetadata>, ()>
Expand description

Download a file from its remote, saving all snapshots to a database in the specified location. Returns a FileContext for opening the file later.

  • file - Remote File to download and open
  • db_path - File path for saved database
  • progress - Function to call for progress updates