Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: FTP scheme was Re: Reading empty directories via FTP error

From: rotenca:telvia:it at: 16-Nov-2003 18:54

> Also because > NLST is not always implemented, if LIST is implemented. And this happens
> if the says (1989) that NLIST MUST
> 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