Пример #1
0
 /// <summary>
 /// Quit the FTP session
 /// </summary>
 public void Quit()
 {
     try
     {
         string   reply      = control.SendCommand("QUIT");
         string[] validCodes = new string[] { "221", "226" };
         lastValidReply = control.ValidateReply(reply, validCodes);
     }
     finally
     {
         // ensure we clean up the connection
         control.Logout();
         control = null;
     }
 }