Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Indy 10 IdFTP.DirectoryListing
| Subject: | Indy 10 IdFTP.DirectoryListing |
| Posted by: | "Richard Stephens" (ri..@almsysinc.com) |
| Date: | Fri, 9 Mar 2007 10:12:46 |
In Indy 10, I am attempting to read the values of IdFTP.DirectoryListing
after an IdFTP.List command. Indy 9 always loaded the DirectoryListing when
a List command was executed; Indy 10 does not. I get a
DirectoryListing.Count of zero.
When I look at IdFTP.ListResult, there are items. So, this tells me that
something is amiss with parsing the ListResult items to the
DirectoryListing.
According to the Indy 10 documentation:
"List will clear any existing entries found in the DirectoryListing
property, and free the collection used for the structured directory listing.
The collection is recreated and values in the ListResult are parsed into
collection items on the initial read access to the DirectoryListing
property."
Well, it is not working as documented. Is there a setting in Indy 10 that I
need to set that was not present in Indy 9?
(I sure wish there were examples in the Indy 10 documentation.)
Thanks,
Rick Stephens