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
curlcommand fails or returns a non-zero exit status. - Executing a decompression command (
zcat,tar) fails or returns a non-zero exit status. - The spawned
curlprocess does not expose a stdout pipe (missing piped handle). - A filesystem operation (create/read/write/remove) fails.