private static void sshCp_OnTransferEnd(string src, string dst, int transferredBytes, int totalBytes, string message) { if(progressBar!=null) { progressBar.Update(transferredBytes, totalBytes, message); progressBar=null; } }
private static void sshCp_OnTransferStart(string src, string dst, int transferredBytes, int totalBytes, string message) { Console.WriteLine(); progressBar = new ConsoleProgressBar(); progressBar.Update(transferredBytes, totalBytes, message); }