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

Function download_file

rust/src/collaboration/sync.rs:47–52  ·  view source on GitHub ↗

TODO: AsRef 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

(
    file: &RemoteFile,
    db_path: S,
)

Source from the content-addressed store, hash-verified

45/// * `file` - Remote File to download and open
46/// * `db_path` - File path for saved database
47pub fn download_file<S: BnStrCompatible>(
48 file: &RemoteFile,
49 db_path: S,
50) -> Result<Ref<FileMetadata>, ()> {
51 download_file_with_progress(file, db_path, NoProgressCallback)
52}
53
54// TODO: AsRef<Path>
55/// Download a file from its remote, saving all snapshots to a database in the

Callers 1

downloadMethod · 0.70

Calls 1

Tested by

no test coverage detected