I have the following code in my FTP DLL to get the server folder:
Try
Dim Serv As Net.FtpWebRequest = GetRequest(GetDirectory(directory))
Serv.Method = Net.WebRequestMethods.Ftp.ListDirectory
Dim reader As New StreamReader(Serv.GetResponse().GetResponseStream())
Dim line = reader.ReadLine()
Dim lines As New List(Of String)
Do Until line Is Nothing
lines.Add(line)
line = reader.ReadLine()
Loop
Return lines.ToArray()
Catch ex As Exception
End Try
But whenever I try to list the directories in the list box of the form the following appears in the LST System.String []