No items in DirectoryListing when there are only directories in the List

Giganews Newsgroups
Subject: No items in DirectoryListing when there are only directories in the List
Posted by:  Gabe Covert (covert.nospam.g@gordon-darby.com)
Date: Mon, 17 Sep 2007

I am attempting to build an application with a TIdFTP component, and am
having some problems with retrieving a listing from the remote server.

The directory of the FTP when logging in has no files, only directories.

I am making the following call:

IdFTP1.List(Memo1.lines, '', true);

I get the following results in my Memo:

drw-rw-rw-  1 user    group          0 Sep 11 12:16 .
drw-rw-rw-  1 user    group          0 Sep 11 12:16 ..
drw-rw-rw-  1 user    group          0 May  3  2004 April2004
drw-rw-rw-  1 user    group          0 May  1  2005 April2005
drw-rw-rw-  1 user    group          0 May  3 22:10 April2007
drw-rw-rw-  1 user    group          0 Sep 11  2004 August2004
drw-rw-rw-  1 user    group          0 Sep  3  2005 August2005
drw-rw-rw-  1 user    group          0 Sep 14  2006 August2006
drw-rw-rw-  1 user    group          0 Sep 11 12:17 August2007

But the DirectoryListing property of IdFTP1 is empty.  How do I get this
DirectoryListing to contain TIdFTPListItems for the directories if there
are no files?

The FTP Server responds as 'Serv-U FTP Server v6.0 for WinSock'
I'm using Delphi 2007, Update 1
Indy 10.1.5

Thanks in advance!

Gabe

Replies