예제 #1
0
 /// <summary>
 /// Function Name : SftpRemoveDirectory()
 /// Description   : This method is used to remove a directory from a SFTP location.
 /// </summary>
 /// <param name="sftpDirectory">Sftp Directory Name</param>
 public void SftpRemoveDirectory(String sftpDirectory)
 {
     try
     {
         Thread.Sleep(5000);
         _objSftpClient.RemoveDir(sftpDirectory);
     }
     catch (Exception ex)
     {
         throw new Exception("Error while deleting directory from SFTP", ex);
     }
 }