Moo_FTPDownload ( sServer; sUser; sPassword; sRemotePath; sLocalFile; bProgress );
This function downloads a file via FTP, optionally specifying the local path.Parameters
Name | Type | Required | Default | Description |
sServer | String | Yes | FTP Server to connect to. | |
sUser | String | Yes | FTP username. | |
sPassword | String | Yes | FTP password. | |
sRemotePath | String | Yes | The remote file path on the server. | |
sLocalFile | String | No | Temp Folder | The local file to be saved to. |
bProgress | Boolean | No | Show progress of FTP download. |
Return Value
Returns either the path to the downloaded file, or an error code.
Notes
Can optionally be used with the Moo_ProgressOptions function.
Errors
Error Code | Description |
Moo_FTPDownload|Err_1 | Invalid number of arguments. |
Moo_FTPDownload|Err_2 | Invalid number of arguments. |
Moo_FTPDownload|Err_3 | Invalid sServer input parameter. |
Moo_FTPDownload|Err_4 | Invalid sUser input parameter. |
Moo_FTPDownload|Err_5 | Invalid sPassword input parameter. |
Moo_FTPDownload|Err_6 | Error opening internet connection. |
Moo_FTPDownload|Err_7 | Error opening ftp connection. |
Moo_FTPDownload|Err_8 | Source file input doesn't exist. |
Moo_FTPDownload|Err_9 | Invalid source file input. |
Moo_FTPDownload|Err_10 | Remote file not found on FTP server. |
Moo_FTPDownload|Err_11 | Error downloading file. |
Related Functions