Type fileInfo(filename As String, filesize As Int, timestamp As Long)
Private Sub makeFilelist
FTP.List(hostPath) ' Get filelist from host
Wait For FTP_ListCompleted (ServerPath As String, Success As Boolean, _
Folders() As FTPEntry, Files() As FTPEntry)
If Success Then
For Each e As FTPEntry In Files
Dim f As fileInfo
f.Initialize
f.filename = e.Name
f.filesize = e.Size
f.timestamp = e.Timestamp
. . .
Next
Else
Log(LastException.Message
End If
End Sub