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
Complete thread:
- Sftp_GetAttributes method - Mariana, 2019-01-10, 11:05
- Sftp_GetAttributes method - Mariana, 2019-01-10, 11:28
- Sftp_GetAttributes method - wodSupport, 2019-01-10, 14:52
- Sftp_GetAttributes method - Mariana, 2019-01-11, 12:28
- Sftp_GetAttributes method - Jasmine, 2019-01-11, 12:40
- Sftp_GetAttributes method - Mariana, 2019-01-11, 12:28
- Sftp_GetAttributes method - wodSupport, 2019-01-10, 14:52
- Sftp_GetAttributes method - Mariana, 2019-01-10, 11:28