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

Commented Issue: Remote File exists not working [1574]

$
0
0
I've tried to use sftp.Exists(String) do not work for files. Already tested for file and for directory. Directory work well, but files are not recognized.
Comments: ** Comment from web user: egenesis **

I think I see where the issue is. It is on sFTPClient.cs on line 426. The value that is returned from RequestRealPath is never null for files. It is either true or false for SftpFileAttributes which is part of the return of RequestRealPath (KeyValuePair<string, SftpFileAttributes>[])


426 if (this._sftpSession.RequestRealPath(fullPath, true) == null)
{
return false;
}
else
{
return true;
}


Viewing all articles
Browse latest Browse all 1026

Trending Articles



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