Ftp object

Property Description Access Type
Ftp.hostname Get server hostname readonly string | nil
Ftp.port Get FTP port readonly number | nil
Ftp.currentdir Get/set the current directory on the server readwrite string | nil
Method Description Return value
Ftp.constructor() FTP object constructor Ftp
Ftp.proxy() Configure a proxy connection boolean
Ftp.close() Close the current FTP connection -
Ftp.download() Download a file from the server Task
Ftp.makedir() Create a directory on the server Task
Ftp.removedir() Remove directory from the server Task
Ftp.movefile() Move a file on the server Task
Ftp.removefile() Remove a file on the server Task
Ftp.upload() Upload a file on the server Task
Ftp.list() FTP directory listing string, boolean
Ftp.command() FTP server command execution Task