Article View: borland.public.cppbuilder.internet.socket
Article #1286Re: IdFTP1->List problem
From: David Ayre
Date: Thu, 15 Feb 2007 18:57
Date: Thu, 15 Feb 2007 18:57
24 lines
1670 bytes
1670 bytes
"Tom" <tom@nospam.net> wrote: >> If the server gives the wrong response to IdFTP1->List(SL,"",false); >> for an empty folder, how can I detect this and continue, > >Indy uses Exceptions therefore if a bad response is received an exception >should be thrown. That being the case you need to use try/catch to catch >the exceptions and deal with them accordingly. > >If an exception isn't thrown, you should check the response code that >is returned and determine your action from there. > >Regards, > >Tom > Thanks Tom, I thought something like that would do it, but I'm not sure how to set it out. Could you possibly give me a code example. Cheers, David
Technical Details
Message-ID:
<45d4ad13$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45d30c11$1@newsgroups.borland.com> <45d34eeb@newsgroups.borland.com> <45d430c5$1@newsgroups.borland.com> <45d470f5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,56e043fe6a8aa103 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David Ayre" <davidcayre@ntlworld.com> Sender: "David Ayre" <davidcayre@ntlworld.com> Reply-To: "David Ayre" <davidcayre@ntlworld.com> Subject: Re: IdFTP1->List problem Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 81.96.129.134 References: <45d30c11$1@newsgroups.borland.com> <45d34eeb@newsgroups.borland.com> <45d430c5$1@newsgroups.borland.com> <45d470f5$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <45d4ad13$1@newsgroups.borland.com> Date: 15 Feb 2007 10:57:23 -0800 X-Trace: newsgroups.borland.com 1171565843 207.105.83.66 (15 Feb 2007 10:57:23 -0800) Lines: 25 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail