[REBOL] Re: Reading empty directories via FTP error
From: brett:codeconscious at: 13-Nov-2003 23:19
> > Thinking more on this, given the whole NLST handling (if empty?
> > file-list [....]) is a second bite of the cherry at getting a
> > directory list, and if you can assume that your FTP server will
> > always respond to the LIST command in a way that REBOL can parse,
> > you could probably cut the whole NLST handling from parse-dir-list
> > and happily ignore most of this thread. :-)
> Quite possibly, since I've just tried it and it works for me. ;)
Ahah. So I was on the right track.
Not to be beaten by this - I've hammered away at it and eventually built my
own dodgy FTP server to replicate the problem and get a different
perspective on things. I think I see light at the end of the tunnel!! - or
it could be an oncoming heavy vehicle....
Playing with my dodgy server I've found that my last fix - was soooo close,
but I screwed up by closing the listen-port - I should have left it open.
Here then is some code that makes my dodgy server happy. While I was at it,
I added a net-log call to show the hidden NLST communication.
Please tell me that's the end of the tunnel :-)