[REBOL] Re: Reading empty directories via FTP error
From: gscottjones:mchsi at: 11-Nov-2003 16:45
Hi, Anton,
> Scott, I do not see where, after the sub-port
> has been closed that it is attempted to be used.
> Can you point it out, please? ...
In the while loop in the second to the last line in the snippet below:
...
while [line: system/words/pick port/sub-port 1] [append file-list join
line "^/"]
system/words/close port/sub-port
net-utils/confirm/multiline port/locals/cmd-port transfer-check
if empty? file-list [
data-connect
port/locals/dir-cache: system/words/copy []
insert port/locals/cmd-port "NLST"
if (first system/words/pick port/locals/cmd-port 1) <> #"5" [
while [line: system/words/pick port/sub-port 1
] [append file-list join line "^/"]
...
> It looks to me like data-connect would reconnect
> the sub-port before it is used again.
You make a good point. I had not investigated that issue carefully. I
intended to start over today on the issue, but I discovered that I was not able
to recreate the original error. Curious. However, looking at the code, I
think you raise a very good point. If I can figure out why the error no longer
occurs today, I could relook at the problem. Strange.
Thank you for noticing. Now if you could only figure out why the error on my
test site no longer occurs.... :-)
--Scott Jones