Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: SftpClient.Exists always return true

$
0
0
I've created this little function in my project and I don't have any problems.
public bool Exists(string remotefilepath)
{
    try
    {
        _sftpClient.GetAttributes(remotefilepath);
    }
    catch (SftpPathNotFoundException)
    {
        return false;
    }
    return true;
}

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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