Re: Directory list problem with Gene6 FTP server

Giganews Newsgroups
Subject: Re: Directory list problem with Gene6 FTP server
Posted by:  Michael J. Leaver (spam@mjleaver.com)
Date: Tue, 26 Oct 2004

Michael J. Leaver wrote:
> I'm getting a strange directory listing with a Gene6 FTP server (V3.2)
> and Indy 10 (latest version). No matter if I use LIST or MLSD I keep
> getting entries for the parent and grand-parent directories, e.g. if I'm
> in the directory /abc/def/ghi/ then I'd get a list like this:
>
> .
> ..
> /abc
> /abc/def
> [rest of files and directories]
>
> So it's telling me the name of the parent and grand-parent directories
> in the listing (not their contents, just their names).
>
> Any ideas?
>
> Thanks

To follow up, I discovered Indy 10 is actually using MLSD by default
because the server supports it.

And to provide further info, I changed directory to
/Child1/Child2/Child3 and this is the output from the MLSD command (the
directory is empty):

type=cdir;modify=20041025161410;
/Child1/Child2/Child3'#$D#$A'type=pdir;modify=20041025161411;
..'#$D#$A'type=pdir;modify=20041025161411; /Child1/Child2'

I notice the 'type' of 'cdir' and 'pdir' (for parent and child?). Should
these items be filtered out from DirectoryListing?

Thanks

Replies

In response to

Directory list problem with Gene6 FTP server posted by Michael J. Leaver on Tue, 26 Oct 2004