Moo_DownloadFile ( sFile ; sLocal ; bProgress );
This functions lets you download a file from the internet to the temporary folder and returns the path to the local file.Parameters
Name | Type | Required | Default | Description |
sFile | String | Yes | The input file to be downloaded. | |
sLocal | String | No | Optional local path to save the file to. | |
bProgress | Boolean | No | False | Should the download progress be shown. |
Return Value
Returns either the path to the downloaded text file, or an error code.
Notes
Can optionally be used with the Moo_ProgressOptions function.
Errors
Error Code | Description |
Moo_DownloadFile|Err_1 | Invalid number of arguments. |
Moo_DownloadFile|Err_2 | Invalid input URL. |
Moo_DownloadFile|Err_3 | File download failed. |
Moo_DownloadFile|Err_4 | User cancelled download. |
Moo_DownloadFile|Err_5 | Local path doesn't exist. |
Related Functions