Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Unassigned: Exists function returns always true for any file [1952]

$
0
0
See attached test source. Some old version of ssh.net worked fine.
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;
}
}


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>