downloadFile

fun downloadFile(fileURL: String, downloadDir: String): String

Download a file from the specified URL. Should be called from a background thread/coroutine.

Return

The filesystem path to the downloaded file.

Parameters

fileURL

The URL specifying the file to be downloaded.

downloadDir

The directory to which the downloaded file should be saved.