= sftpClient.ListDirectory(FTPSourceFile).ToList() Dim lines As New DataTable lines.Columns.Add("fileName") if fileList <> null and fileList.Count() > 2 then dim i as int = 2 while i < fileLast.Count() lines.Rows.Add(fileList(i)) i = i+1 end while end if client.Disconnect() Files = lines]]>