public void GetFilesWithFTPNewMode(string host, string remoteLocation) { FTPSClient client = new FTPSClient(); try { client.Connect(host,ESSLSupportMode.All); try { client.SetCurrentDirectory(remoteLocation); ScriptName = client.GetCurrentDirectory(); string localDownloadDirectory = downloadDir + ScriptName; client.GetFiles(localDownloadDirectory, "*.log", EPatternStyle.Wildcard, false); } catch (Exception ex) { } } finally { client.Close(); client.Dispose(); } }