pub fn py_ensure_file_exists_or_download_http(
py: Python<'_>,
filepath: &str,
url: &str,
checksums: Option<&str>,
timeout_secs: Option<u64>,
) -> PyResult<()>Expand description
Python wrapper for ensure_file_exists_or_download_http.
Ensures that a file exists at the specified path by downloading it if necessary.
ยงErrors
Returns an error if:
- The HTTP request fails or returns a non-success status code:
PyErr. - Any I/O operation fails during file creation, reading, or writing:
PyErr. - Checksum verification or JSON parsing fails:
PyErr.