|Subject:||Re: Bug in TidFTP.Get|
|Posted by:||Remy Lebeau (TeamB) (email@example.com)|
|Date:||Tue, 2 Mar 2004|
"James A. Schulz" <jaschu…@wiseware.com> wrote in message
> It appears that, contrary to the docs, TidFTP.Get raises
> an EIdFTPFileAlreadyExists exception even when the
> ACanOverwrite and AResume parameters are TRUE.
You cannot set ACanOverwrite and AResume both to True or both to False at
the same time. Think about it for a moment, and you will understand why.
It makes no sense to set them both to True - resuming a file appends to an
existing file, which is not the same as overwriting the file with a new one.
The operations are mutually exclusive. On the same token, setting them both
to False doesn't make sense either, because then the file can't be
downloaded at all if it already exists on the local machine.
The bug is in the documentation, not the actual component.
Bug in TidFTP.Get posted by James A. Schulz on Tue, 2 Mar 2004