Xceed FTP Library Documentation
ListingFolderItem event
XceedFtp control reference > Events > ListingFolderItem event

Description

This event provides items being listed as a result of a call to the ListFolderContents method. It is triggered once for each successfully parsed folder listing line sent by the FTP server.

If you want your application to parse the FTP server’s listing data, see the ListParsingFlags property and the ParsingListLine event.

The file information provided by the ListingFolderItem event's parameters is not modifiable.

Parameters
 

Parameter Description
sName  The remote name of the file, folder or link being listed.
dtDate  The file date of the remote file.
lFileSize  The file size of the remote file.
eItemType  The type of item being listed. If this parameter is fitFile, then the item being listed is a file. If it is fitLink, then the item is a link. If it is fitFolder, then the item is a folder.
sUserData  The value that was provided to the ParsingListLine event’s sUserData parameter. 0 if you did not write a handler for that event.

 

Declaration (event)  

void ListingFolderItem(
[in] BSTR sName, 
[in] DATE dtDate, 
[in] long lFileSize, 
[in] EXFFolderItemType eItemType, 
[in] BSTR sUserData
); 

Declaration (interface implementation)  

HRESULT ListingFolderItem(
[in] BSTR sName, 
[in] DATE dtDate, 
[in] long lFileSize, 
[in] EXFFolderItemType eItemType, 
[in] BSTR sUserData
);