download File To Path
fun downloadFileToPath(downloadDirectoryAbsolutePath: String, remoteFileUrl: String, outputFilename: String, extension: String? = null): ERROR CLASS: Symbol not found for Pair<java/io/File, ERROR CLASS: Symbol not found for HttpHeaders>
Return
The downloaded file
Parameters
download Directory Absolute Path
the absolute file path to the download directory. Must begin with "/".
remote File Url
the remote url of the file to be downloaded
output Filename
filename of the end result file with no file extension
extension
file extension (optional).
Throws
if file could not be downloaded