Hi , my problem is that the "FtpGetFile" function always downloading the same file , even the file is deleted from the ftp server, without restarting my application,here is my simple code
HINTERNET hInternet;
HINTERNET hFtpSession;
hInternet = InternetOpen(NULL,INTERNET_OPEN_TYPE_DIRECT,NULL,NULL,0);
hFtpSession = InternetConnectA(hInternet, "FTP.drivehq.com", INTERNET_DEFAULT_FTP_PORT, "user","pass", INTERNET_SERVICE_FTP,INTERNET_FLAG_PASSIVE, 0);
FtpGetFile(hFtpSession ,"ip.txt", "ip.txt", FALSE,NULL,FTP_TRANSFER_TYPE_BINARY|INTERNET_FLAG_RELOAD,NULL);
InternetCloseHandle(hFtpSession);
InternetCloseHandle(hInternet);
so is there any solution for avoiding downloading the same file again and again without restarting my app??
Thanks in advance.