[REBOL] Re: Reading empty directories via FTP error
From: g:santilli:tiscalinet:it at: 12-Nov-2003 10:20
Hi Ashley,
On Wednesday, November 12, 2003, 2:09:56 AM, you wrote:
AT> Net-log: "226-66555.9 Mbytes free disk space"
>>> write site/test/b2 "b"
AT> URL Parse: userid password www.site.com.au none public_html/test/ b2
AT> ** User Error: Server error: FTP 226-File successfully transferred
AT> ** Near: write site/test/b2 "b"
My guess is that the server is sending TWO lines of answer, i.e.:
226-66555.9 Mbytes free disk space
226-File successfully transferred
but REBOL only expects and picks one. On the subsequent operation,
it picks the second line, but of course this confuses it because
it is not the answer it is expecting.
I don't think this has an easy solution, because you have no way
to know how many lines the server is sending as answer; you can
patch the protocol for this particular server only by waiting for
two lines of answer instead of one, but then it won't work on
other servers.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/