Topic Path: Symbol Reference > Classes > TIdFTPListBase Class > TIdFTPListBase Methods > ParseListing Method
ContentsIndexHome
PreviousUpNext
TIdFTPListBase.ParseListing Method

Parses and stores values found in a directory listing response from a remote FTP server.

class function ParseListing(
    AListing: TIdStrings; 
    ADir: TIdFTPListItems
): boolean; virtual;
Parameters 
Description 
AListing 
Text representing the directory listing response from a remote FTP server.
 
ADir 
Container for the structured directory listing. 

boolean - True on success.

ParseListing is a virtual Boolean class function used to parse and store values found in a directory listing response from a remote FTP server. 

ParseListing iterates over lines of text found in the AListing argument and populates the structured dirctory listing container in ADir using non-blank values. ParseListing calls the MakeNewItem method to create new entries in the structured directory listing container and assigns the non-blank line of text to the Data property for the TIdFTPListItem instance. Finally, ParseListing calls the ParseLine method to derive values for properties in the TIdFTPListItem instance using the textual data assigned to the collection item. 

ParseListing returns True when the method has been successfully completed.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.