Internet Direct (Indy)
Home
PreviousUpNext
TIdFTPListItems.Add Method

Creates and adds a new entry in the structured directory listing collection.

Pascal
function Add: TIdFTPListItem;

TIdFTPListItem - File or directory entry added to the collection.

Add is a TIdFTPListItem function used to create and add a new entry in the structured directory listing collection. 

Add calls the inherited method and ensures that the return value is cast to a TIdFTPListItem object instance. Use the Delete and Clear methods inherited from TIdCollection to maintain the Items in the collection. 

Add is used when the ListParserClass for the FTP client needs to make a new entry in the structured directory listing after calling its' ParseListing and ParseLine methods.

TIdFTPListItem 

TIdFTP.DirectoryListing 

TIdFTPListBase.MakeNewItem 

TIdFTPListBase.ParseListing 

TIdFTPListBase.ParseLine

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.