Internet Direct (Indy)
Home
PreviousUpNext
TIdFTP.ListResult Property

Textual form of the directory listing returned by an FTP server.

Pascal
property ListResult: TIdStrings;

ListResult is a read-only TIdStrings property that contains the textual response captured following execution of the FTP LIST, NLST, MLST, MLSD, STAT, or REIN commands. ListResult is the raw directory listing data returned by the FTP server. 

ListResult is updated in the following FTP client methods: 

 

 

Values stored in ListResult are used to create the structured directory listing stored in the DirectoryListing. Reading values in the DirectoryListing property causes the values in ListResult to be parsed using a registered directory listing parser if the collection is unassigned. 

When UsedMLS contains True, the standardized MLST directory listing format is used on the FTP server. In this case, the TIdFTPListParserBase class is used to parse values in ListResult into the collection items maintained in the DirectoryListing property. 

When UsedMLS contains False, the CheckListParseCapa function is used to determine the correct registered directory listing parser for parsing the directory listing. Registered parsers are found in the GParserList variable, and include parsers added during execution of the initialization section for units added to the application. 

Use ListParserClass to access the class reference used to perform parsing of the directory listing. 

Use DirFormat to access the common name for the directory listing format detected when examining the data in ListResult. 

Use properties and methods in the DirectoryListing collection to access the structured directory listing for the FTP client. 

Resources allocated to the ListResult property are freed in the destructor the object instance.

ExtListDir 

ExtListItem 

List 

Status 

UsedMLS 

ListParserClass 

DirFormat 

DirectoryListing 

Destroy 

TIdFTPListParserBase

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.