Article View: borland.public.cppbuilder.internet.socket
Article #1688Re: Indy9 - TIdFTP - List - BCB6
From: Remy Lebeau (TeamB)
Date: Mon, 20 Nov 2006 19:52
Date: Mon, 20 Nov 2006 19:52
30 lines
2095 bytes
2095 bytes
"Ohta" <kinukinu8@ybb.ne.jp> wrote in message
news:455fe9f3$1@newsgroups.borland.com...
> I have problems using Indy9 TIdFTPclient component on BCB6.
That is because you are using it wrong. Use this instead:
IdFTP->List(NULL, "*.txt", true);
for(i = 0; i < IdFTP->DirectoryListing->Count; ++i)
{
Memo1->Lines->Add(IdFTP->DirectoryListing->Items[i]->FileName);
Memo2->Lines->Add(IdFTP->DirectoryListing->Items[i]->Size);
Memo3->Lines->Add(IdFTP->DirectoryListing->Items[i]->ModiffiedDate);
}
> But I can't get the correct information but get the following wrong
> results.
Until recently, there was NO standardized format for directory listings at
all. Each server was completely free to use whatever format it wanted. As
such, there are literally several dozen different formats being used on the
Internet. TIdFTP in Indy 9 only supports a few of them. Most of them are
simply not parsable by TIdFTP in Indy 9 at all. Apparently you are
connecting to a server that is using one of those incompatible formats. So
you will have to use the OnParseCustomListFormat event to parse the data
yourself.
Gambit
Technical Details
Message-ID:
<4562082a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<455fe9f3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,38a935a5fc2ebefd X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <455fe9f3$1@newsgroups.borland.com> Subject: Re: Indy9 - TIdFTP - List - BCB6 Date: Mon, 20 Nov 2006 11:52:33 -0800 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <4562082a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1164052522 69.169.4.232 (20 Nov 2006 11:55:22 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail