wininet.dll and FTP
-
Hi, I need a way to find out before starting the download of a file with FTP if the file is being changed. Ex: with a regular file, i can try to open the file EXCLUSIVELY. Is it possible to do the same thing with wininet.dll and FTP Thanks Michel Dubord michel.dubord@avon.com
-
Hi, I need a way to find out before starting the download of a file with FTP if the file is being changed. Ex: with a regular file, i can try to open the file EXCLUSIVELY. Is it possible to do the same thing with wininet.dll and FTP Thanks Michel Dubord michel.dubord@avon.com
No. FTP servers normally don't support that functionality unless it is an implementation specific extension, and I don't know of any that do. Normally, FTP servers don't support exclusive access to files being downloaded. The problem is the status of the file can change in between the request for the locked status and the start of the actual download. So with that in mind, by the standard specification, when you start the file transfer, the server can respond with a '450-File unavailable' error. But you have to try and start the file transfer to find that out. RageInTheMachine9532