FW >= 1250
The ftp_status() function returns information about the FTP engine
int full Set to 1 to return the FTP command array in addition
array: Return array contains the following elements:
| Key | Value |
|---|---|
| status | Connection transfer status |
| file_size | Size of file being transferred |
| last_status_code | Last FTP response code |
| file_position | Position of transfer (between 0 and file_size) |
| file_direction | 0 = Download, 1 = Upload |
| file_name | name of file being transferred |
| command_log | Optional array of commands (if $full == 1) |
| status | Description |
|---|---|
| -1 | Error |
| 0 | Idle |
| 1 | Busy with a transfer |
| 2 | Transfer completed |