Method SFTPClient():disconnect() Foundation
Closes the connection.
:disconnect() --> self
This method returns self.
Closes the active SSH connection to the SFTP server. This method must be called when all operations have been completed to properly release network resources and terminate the SSH session.
It is recommended to call this method even if operations have failed, to ensure proper cleanup of resources including SSH keys and session data.
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.