Re: ftp problem

Giganews Newsgroups
Subject: Re: ftp problem
Posted by:  Tim (tim.f…@orcus.co.uk)
Date: Fri, 25 Nov 2005

I've had a similar problem and it seems to be
"dm.IdFTP1.List(FileList,'',false);"

Change false to true and it seems to work but shows you detailed info which
you may not require

The following may help a little

    dm.IdFTP1.List;

    if dm.IdFTP1.Listresult > 2 then

        begin

            dm.IdFTP1.List(FileList,'',false);

        end

    else

        begin

            //no files found

        end;

Hope this helps

Tim

"Adam" <suppo…@delphipages.cn> wrote in message
news:6CB6550A9AE2E240suppo…@delphipages.cn...
> I'm using indy9,My codes:
>
>  try
>    dm.IdFTP1.List(FileList,'',false);
>  except on E: Exception do
>    begin
>      outSign := E.Message;
>      writeLog2(FormatDateTime('yyyy-mm-dd hh:mm:ss',now())+'
> '+outSign);
>      exit;
>    end;
>  end;
>
> sometimes there is exception:no files find. or becames dead.
>
> Please help me check what's wrong. Thank you very much.

Replies

None

In response to

ftp problem posted by Adam on Mon, 21 Nov 2005