Page 1 of 1

Anomaly of FTP:directory()

Posted: Wed May 28, 2008 5:00 pm
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

Posted: Thu May 29, 2008 10:42 am
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