Good luck to you! bro public static bool SftpUpload(string localDir, string remoteDir, bool blMakeDir = true) { if (string.IsNullOrEmpty(remoteDir)) { MessageBoxEx.Show("Upload path is not specified"); return false; } try { using (SftpClient client = new SftpClient("192.168.0.1", 22, "user", "password")) { client.KeepAliveInterval = TimeSpan.FromSeconds(60); client.ConnectionInfo.Timeout = TimeS..
C# SFTP Folder Upload
Good luck to you! bro public static bool SftpUpload(string localDir, string remoteDir, bool blMakeDir = true) { if (string.IsNullOrEmpty(remoteDir)) { MessageBoxEx.Show("Upload path is not specified"); return false; } try { using (SftpClient client = new SftpClient("192.168.0.1", 22, "user", "password")) { client.KeepAliveInterval = TimeSpan.FromSeconds(60); client.ConnectionInfo.Timeout = TimeS..
2021.07.20