Ftp:close()

Close the Ftp client connection.

Remember to close the connection when no more needed. Ftp:close() is automatically called before garbage collection of the FTP object, but this behaviour cannot be predicted

Return value

This function returns no value.

Example

local net = require "net" local url = "your ftp server address" local ftpclient = net.Ftp(url, "anonymous", "guest") -- closes the connection client:close()