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,
)
| 45 | /// * `file` - Remote File to download and open |
| 46 | /// * `db_path` - File path for saved database |
| 47 | pub 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 |
no test coverage detected