Ftp object
The Ftp object connects to FTP servers to upload, download, and manage files remotely
| Property | Description | Access | Type |
|---|---|---|---|
| Ftp.currentdir | Get/set the current directory on the server | readwrite | string nil |
| Ftp.hostname | Get server hostname | readonly | string nil |
| Ftp.log | Get last server response | readonly | string |
| Ftp.port | Get FTP port | readonly | number nil |
| Methods | Description | Return value |
|---|---|---|
| Ftp:close() | Close the current FTP connection | - |
| Ftp:command() | FTP server command execution | |
| Ftp:constructor() | FTP object constructor | |
| Ftp:download() | Download a file from the server | |
| Ftp:list() | FTP directory listing | string, boolean |
| Ftp:makedir() | Create a directory on the server | |
| Ftp:movefile() | Move a file on the server | |
| Ftp:proxy() | Configure a proxy connection | boolean |
| Ftp:removedir() | Remove directory from the server | |
| Ftp:removefile() | Remove a file on the server | |
| Ftp:upload() | Upload a file on the server |