Internet Direct (Indy)
Home
PreviousUpNext
TIdFSPListItems.ParseEntries Method

Create and stores items in the collection using values received in an FSP protocol response.

Pascal
function ParseEntries(
    const AData: TIdBytes; 
    const ADataLen: Cardinal
): Boolean;
Parameters 
Description 
AData 
Bytes received in an FSP protocol response.
 
ADataLen 
Length of the bytes received in the protocol response. 

Boolean - True when the collection entries are successfully parsed from the protocol response.

ParseEntries is a Boolean function used to create and store items in the collection using values received in an FSP protocol response. 

AData is an arrayof bytes that contains values received in the FSP response. AData can contain one or more occurrances of file or directory information returned from the remote FSP host. 

ParseEntries calls the Add method to create a new item in the collection for each file or directory encountered in AData. 

When a file entry is detected in AData, the ItemType property in the TIdFSPListItem instance is set to the value ditFile. When a directory entry is detected in AData, the ItemType property in the TIdFSPListItem instance is set to the value ditDirectory. Other property values in the TIdListItem instance are parsed from AData, including the modification timestamp, file size, and file name (when present). 

ParseEntries returns True if all file and directory information in the FSP protocol response is successfully processed in the method. 

ParseEntries is used in the List method for the FSP client to prepare the contents of its' structured DirectoryListing property.

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.