Shame, I wonder if there are any other ssh projects for vb.net that keep the session open. Do you know any?
Thanks for your help already though
SftpClient.cs:
public bool Exists(string path)
{
CheckDisposed();
if (path.IsNullOrWhiteSpace())
throw new ArgumentException("path");
if (this._sftpSession == null)
throw new SshConnectionException("Client not connected.");
var fullPath = this._sftpSession.GetCanonicalPath(path);
try
{
_sftpSession.RequestLStat(fullPath);
return true;
}
catch (SftpPathNotFoundException)
{
return false;
}
}
Ok thank you @drieseng for providing the updated modifications.
In which version it will be updated ? or Is it possible for you to consider this changes in the current beta version ?
Hi da_rinkes,Your problem is that you are missing basic C#, .Net and WindowsForms knowledge.
I have a similar problem how can i access the SSHCLIENT in my C# different forms.
Am i supposed to open new connection in each form, or how that works please help me.
Thanks,
Avinash