|Subject:||IdFTP.Get Not Firing OnAfterGet|
|Posted by:||Richard Stephens (ri…@almsysinc.com)|
|Date:||Wed, 14 Mar 2007|
In Delphi 2006 and Indy 10, I am having a problem downloading files using
the IdFTP.Get command.
This is something that worked fine under Indy 9.
I am using the syntax: IdFTP1.Get(WebFileName,LocalFileName,True);
It DOES download the file and give it the correct LocalFileName, but the
IdFTP1.OnAfterGet logic does not fire. (I am using OnAfterGet to tell me
that it was successful). Rather, it simply returns control to the next
statement after the Get command. It does not get an exception.
If I change the syntax to IdFTP1.Get(WebFileName,LocalFileName,True,True);
and test it, it gives me an EIdFTPFileAlreadyExists exception .... but the
LocalFileName does not exist. (And if it did, it should have overwritten
I am assuming this is yet another difference between Indy 9 and 10 that I am
running into.....or a bug in Indy 10.
Any help would be appreciated.