Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : TIdFTP.ParseFTPList
| Subject: | TIdFTP.ParseFTPList |
| Posted by: | "Peter" (peace39..@yahoo.com) |
| Date: | Sun, 11 Feb 2007 20:52:58 |
I am migrating an app from Indy 9 to Indy 10, the ParseFTPList function does
NOT find a parser for my linux dir results (Indy 9 did), here is my code:
var
sList: TStringList;
sList := TStringList.Create;
FTP.List(sList,'',True);
// Note Indy's auto population of DirectoryListing broken
// patched here
if FTP.DirectoryListing.Count <> sList.Count then
raise TMyException.Create('Directory listing could not be
populated');
FTP List does populate sList with directory entries in the format:
'-rw-r--r-- 1 pkobor pkobor 5100 Jan 5 04:50 F23.jpg'
When I reference Ftp.DirectoryListing.Count, the parser is supposed to
poplulate the directory structure, but doesn't.
How do I get the parsing to take place??