See attached test source. Some old version of ssh.net worked fine.
Comments: ** Comment from web user: drieseng **
Comments: ** Comment from web user: drieseng **
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;
}
}