>>ListDirectoryDetails only returns a string because the return type must be compatable with all FTP servers.
>>So you will have to filter the results. Anything specific that you wanted to filter on ?
>
>I was looking for only .zip files.
Assuming you've got the result from ListDirectoryDetails in a string named 'detailString' then something like this will at least get the relevant lines:
Dim filedetails = detailString.Split(New String() {vbCr & vbLf}, StringSplitOptions.RemoveEmptyEntries)
Dim zipFiles As List(Of String) = (From filedetail In filedetails.Where(Function(name) System.IO.Path.GetExtension(name) = ".zip")filedetail).ToList()
(Hope the VB translation is correct)