Anomaly of FTP:directory()

Post Reply
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Anomaly of FTP:directory()

Post by Maurizio »

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: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Post by Maurizio »

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
Post Reply