Example #1
0
 public void Upload(string localpath, string remotepath)
 {
     if (FTP)
     {
         _ftpc.PutFile(localpath, remotepath, FileAction.Create);
     }
     else
     {
         using (var file = File.OpenRead(localpath))
             _sftpc.UploadFile(file, remotepath, true);
     }
 }