🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #959

Re: Problem using TIdFTP in C++ Builder 2007. List() doesn't work

#959
From: Remy Lebeau (TeamB)
Date: Fri, 20 Jul 2007 19:46
28 lines
2172 bytes
"Star" <noemai@noemail.com> wrote in message
news:46a108f5$1@newsgroups.borland.com...

> For some reason, IdFTP1->DirectoryListing->Count is always 0.

Please read the Indy 10 documentation.  This issue is covered in the
DirectoryListing topic.

The formatting of FTP listings in the LIST and NLST commands are not
standardized at all.  Servers are free to use whatever they want.  There are
new drafts that introduce additional commands that have standardized
formats, but not all servers support them yet.  As such, there are dozens of
formats used online today.

In Indy 9, the DirectoryListing supported only a few hard-coded formats that
were commonly used.

In Indy 10, the DirectoryListing was completely redesigned to use a plugin
system now.  Indy 10 has several dozen parser plugins available, but none of
them are enabled by default.  That is why the Count is always 0 -
DirectoryListing doesn't know how the parse the data.  You have to include
the appropriate IdFTPListParse...hpp header files for the specific parser(s)
that you want to use.  Or alternatively include the IdAllFTPListParsers.hpp
header file to enable them all.


Gambit
Technical Details
Message-ID: <46a11115$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.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
References: <46a108f5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f37f99fb538f42a3
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <46a108f5$1@newsgroups.borland.com>
Subject: Re: Problem using TIdFTP in C++ Builder 2007. List() doesn't work
Date: Fri, 20 Jul 2007 12:46:18 -0700
Lines: 30
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: 75.82.252.126
Message-ID: <46a11115$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1184960789 75.82.252.126 (20 Jul 2007 12:46:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.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
X-Original-Bytes: 2014