Article View: borland.public.cppbuilder.internet.socket
Article #1284Re: IdFTP1->List problem
From: Tom
Date: Thu, 15 Feb 2007 14:41
Date: Thu, 15 Feb 2007 14:41
13 lines
1470 bytes
1470 bytes
> 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
Technical Details
Message-ID:
<45d470f5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!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>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,56e043fe6a8aa103 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Tom" <tom@nospam.net> Newsgroups: borland.public.cppbuilder.internet.socket References: <45d30c11$1@newsgroups.borland.com> <45d34eeb@newsgroups.borland.com> <45d430c5$1@newsgroups.borland.com> Subject: Re: IdFTP1->List problem Date: Thu, 15 Feb 2007 08:41:17 -0600 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.1.78.156 Message-ID: <45d470f5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1171550453 68.1.78.156 (15 Feb 2007 06:40:53 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail