Re: List() and FileName

Giganews Newsgroups
Subject: Re: List() and FileName
Posted by:  J. Peter Mugaas (oma002…@mail.wvnet.edu)
Date: Sat, 20 Nov 2004

On Fri, 19 Nov 2004 18:02:47 +0100, cbyvd wrote:

> 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 ?
>
Could you please send me a raw listing where the problem occurs.  There may
be a bug in the parser that I can fix or I might be able to make a parser
class for the FTP server.  I might also see if the snapshot code currently
works properly.

Thanks.

--
J. Peter Mugaas - Indy Pit Crew
Internet Direct (Indy) Website -http://www.indyproject.org/
Personal Home Page -http://www.wvnet.edu/~oma00215
If I want to do business with you, I will contact you.  Otherwise, do not
contact me.

Replies

In response to

List() and FileName posted by cbyvd on Fri, 19 Nov 2004