FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Anomaly of FTP:directory()
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Anomaly of FTP:directory()
Posted: Wed May 28, 2008 05: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

Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Anomaly of FTP:directory()
Posted: 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

Continue the discussion