List() and FileName

Giganews Newsgroups
Subject: List() and FileName
Posted by:  cbyvd (cby…@skynet.be)
Date: Fri, 19 Nov 2004

Hello everybody,

I work with indy 10 and vb.net

Dim lstContenu As IndyStringList

Dim i As Integer

FtpClt.List(lstContenu, "", True)

lstDirectory.Items.Clear()

For i = 0 To FtpClt.DirectoryListing.Count - 1

LstDirectory.Items.Add("FileName : /" + FtpClt.DirectoryListing(i).FileName
+ "/")

next

I have a directory /      / and when i retreive the directory list, the
result is "FileName : //" instead of  "FileName : /      /"

How can i have the good result ?

Thanks.

Yanick

Replies