[REBOL] Re: FTP scheme was Re: Reading empty directories via FTP error
From: rotenca:telvia:it at: 16-Nov-2003 18:54
Hi,
> Also because
> NLST is not always implemented, if LIST is implemented. And this happens
also
> if the http://www.wu-ftpd.org/rfc/rfc1123.html says (1989) that NLIST MUST
be
> implemented.
I was wrong, I have no evidence that NLST is not handled by some ftp servers.
I have thought to some strategies for the LIST/NLIST problem
1) Correct the parse rules. But it is hard to handle all the possible
variants.
2) Make first NLST to be sure to have at least a correct list of names and
then do the LIST to get info about single names. The problem of NLST is that
it does not distingue between dir and files, so if user assumes that
directories names end with slash can be foolish.
3) Use a custom flag "NLIST" to get names with NLST instead of LIST. Examples
open ftp://bla.bla.bla
;use LIST
open/custom ftp://bla.bla.bla [NLST]
;use NLST -> no info about dir and files, no slash at the end of dir names
Any ideas?
---
Ciao
Romano