pub fn download_file(url: String, output_file: String) -> Result<(), String> {
        // For now, we're using curl.
        // I'd like to make this less dependant on the OS,
        // so in the future this will be an actually HTTP request or something.
        match Platform::command(format!("curl '{}' -o {}", url, output_file)) {
            Ok(_) => Ok(()),
            Err(_) => Err(format!("Curl failed to download the file at {} to {}", url, output_file))
        }
    }
/// This function handles the actual legwork of downloading a file from the internet.
/// It takes the url to the file on the internet and the path to the resulting output file.
/// To download a file you must have curl installed and in your path!
/// In the future, this wont depend on curl.
This function handles the actual legwork of downloading a file from the internet.
It takes the url to the file on the internet and the path to the resulting output file.
To download a file you must have curl installed and in your path.
In the future, this wont depend on curl.
This function handles the actual legwork of downloading a file from the internet . It takes the url to the file on the internet and the path to the resulting output file . To download a file you must have curl installed and in your path . In the future this wont depend on curl .
pub fn download_file(url: String, output_file: String) -> Result<(), String> {
        // For now, we're using curl.
        // I'd like to make this less dependant on the OS,
        // so in the future this will be an actually HTTP request or something.
        match Platform::command(format!("curl '{}' -o {}", url, output_file)) {
            Ok(_) => Ok(()),
            Err(_) => Err(format!("Curl failed to download the file at {} to {}", url, output_file))
        }
    }
pub fn download_file ( url : String , output_file : String ) -> Result < ( ) , String > { // For now, we're using curl. // I'd like to make this less dependant on the OS, // so in the future this will be an actually HTTP request or something. match Platform :: command ( format ! ( " " url output_file ) ) { Ok ( _ ) => Ok ( ( ) ) , Err ( _ ) => Err ( format ! ( " " url output_file ) ) } }
This function handles the actual legwork of downloading a file from the internet.
This function handles the actual legwork of downloading a file from the internet .
url
String
output_file
String
url
String
output_file
String