Ftp:close()method

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

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