run

Function run 

Source
pub fn run(url: &str, opt: &CurlDownloaderOption<'_>) -> Result<PathBuf>
Expand description

Downloads a file from the given URL using curl with the specified CurlDownloaderOption.

ยงErrors

  • Executing the curl command fails or returns a non-zero exit status.
  • Executing a decompression command (zcat, tar) fails or returns a non-zero exit status.
  • The spawned curl process does not expose a stdout pipe (missing piped handle).
  • A filesystem operation (create/read/write/remove) fails.