Sftp_GetAttributes method (wodSFTP / wodSFTP.NET / wodSFTPdll)
Hi,
In fact, the application goes well (using SftpDLL64.dll already indicated), if it transfers to a destination with an older HP UX server.
If there is a connection with a newer HP UX server version (mentioned above), on client it appears that nothing has been transferred, but, in fact, on destination, everything is successfully transferred.
In this case, the Sftp_GetAttributes method returns 0, as it already finds the transferred archives on the server.
bool SFTPConnection::SFTPFileFind(LPCTSTR RemoteFile)
{
long lfileExist = Sftp_GetAttributes(handle, (char *) RemoteFile, 0);
if(lfileExist == 0)
{
TCHAR Temp[100];
wsprintf(Temp,"%s",RemoteFile) ;
LOG_E_WIN32_EVENT0(RERR_RAPTOR_FILEDISTRIBUTOR_SFTP_FILE_ALREADY_EXISTS,Temp);
return true;
}
}
The problem appears as a desynchronization between client and server. The client does not know that the transfer is already done on the server.
BR,
Mariana