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); } }
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); } }