Method FTPClient2():disconnect() Foundation

Closes the connection.

Syntax
:disconnect() --> self
Return

This method returns self.

Description

Closes the active connection to the FTP server. This method must be called when all operations have been completed to properly release network resources.

It is recommended to call this method even if operations have failed, to ensure proper cleanup of resources.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.