FTP.Get - Destination file already exists error - but it doesn't

Giganews Newsgroups
Subject: FTP.Get - Destination file already exists error - but it doesn't
Posted by:  Cary Moore (cary.moo…@XXsherbrookesoftwareXX.co.uk)
Date: Thu, 10 May 2007

Hi,

I'm trying the Indy 10 FTP Client demo with Delphi 2007 (Indy 10.1.5)
running on Vista.

When I get a file the application displays an error that the
"Destination file already exists" however the file does not exist so
I'm not sure why this error appears.

if I change the CanOverwrite parameter from true to false the get call
then works.

From
FTP.Get(s, SaveFile.FileName, true, FTP.ResumeSupported);
to
FTP.Get(s, SaveFile.FileName, false, FTP.ResumeSupported);

Anyone any ideas?

Cary

Replies