Anomaly of FTP:directory()

Anomaly of FTP:directory()

Postby Maurizio » Wed May 28, 2008 5:00 pm

Hello
The first time with FTP:Directory() I have the correct list of the files (1).
After if I delete or I send a file the FTP:Directory return always the same list of files (1) . I try to close and reopen the connection but the list is the same .
I resolve the problem if I close and reopen the programm .

Regards MAurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Postby Maurizio » Thu May 29, 2008 10:42 am

For Antonio

I solve adding this in the method Directory()
#define INTERNET_FLAG_RESYNCHRONIZE 0x00000800
hFTPDir = FtpFindFirstFile( ::hFTP, cMask, @cBuffer, INTERNET_FLAG_RESYNCHRONIZE, 0 )

Regards MAurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 71 guests