Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2007 May : FtpGetFile fails with FILE_ALREADY_EXISTS
| Subject: | FtpGetFile fails with FILE_ALREADY_EXISTS |
| Posted by: | "hoverfrog" (hoverfr..@mac.com) |
| Date: | 17 May 2007 05:07:49 |
I've seen a couple of references to this problem but no solutions.
The following code always returns false, with the error
FILE_ALREADY_EXISTS
BOOL result = FtpGetFile(m_hFtpConnect,str, fileName, FALSE,
FILE_ATTRIBUTE_NORMAL, FTP_TRANSFER_TYPE_BINARY | INTERNET_FLAG_RELOAD
| INTERNET_FLAG_NO_CACHE_WRITE,0L);
Yes the file is there, no it doesn't exist on the local machine (WinCE
device), yes all parameters are valid.
FtpPutFile works, but if I try to use FtpOpenFile with
InternetReadFile I get the same error as with FtpGetFile.
Any ideas anyone?