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 **
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;
}