function Close()


The Close() function of each AFT client object disconnects from the remote service.
If the disconnection was carried out gracefully, it returns true, otherwise if some errors occurred during disconnection it returns false.


Example:

{
 var scli = new SftpClient();
 scli.Host = 'your.sftpserver.com:22';
 scli.User = 'someusername';
 scli.KeyFile = './my_id.rsa';
 if (scli.Connect()) {
  // perform your file transfers...
  // ...
  // ...
  scli.Close();
 }
 scli = null
}