I can download all the files in a folder using TWebCopy via FTP, but when I attempt to download a single file via FTP, the progress dialog briefly appears but the download does not start.
I based my code on the code as provided in the example:
WebCopy.Items.Clear;
with WebCopy.Items.Add do
begin
FTPHost := 'redacted';
FTPUserID := 'redacted';
FTPPassword := 'redacted';
URL := remotefile;
Protocol := wpFTP;
FileDate := FileAge(localfile);
CopyNewerOnly := True;
TargetDir := ExtractFilePath(localfile);
end;
WebCopy.Execute;
with WebCopy.Items.Add do
begin
FTPHost := 'redacted';
FTPUserID := 'redacted';
FTPPassword := 'redacted';
URL := remotefile;
Protocol := wpFTP;
FileDate := FileAge(localfile);
CopyNewerOnly := True;
TargetDir := ExtractFilePath(localfile);
end;
WebCopy.Execute;
I have also tried with CopyNewerOnly := False; but this does not make a difference.