Ok, to dig more into the guts of it, here's what
to do:
Make a new rebol script file, paste this into it:
--------------------
rebol [
notes: {
write clipboard:// mold system/schemes/ftp/handler
}
]
system/schemes/ftp/handler:
--------------
Now use the notes to paste the ftp-handler code in at the bottom.
Now when you execute the script, you are setting the ftp
handler. So that means you can put in print statements wherever
you like to bug-test it.
It's not so hard, you can use divide and conquer to isolate the
approximate bug position.
I advise you to put print statements that are distinguished easily
from the trace/net output, eg:
print "CR> at point 1"
Anton.
> On 10-Nov-03, G. Scott Jones wrote:
>
> > Carl Read wrote:
>
> >> Brett Handley wrote:
>
> >>> That's odd. I get an empty block returned when I create an empty
> >>> directory on my website and then read it.
>
> >> > Maybe you should trace the connection and see what conversation
> >> > the server is having with REBOL.
>
> >> Except I don't know how to do that. :)
>
> > trace/net true
>
> Ah - thanks. Didn't expect it to be so simple.
>
> So, here's the end of the trace output when it reads a directory with
> some files in it...
>
> Net-log: [
> "SYST" "*"]
> Net-log: "215 UNIX Type: L8"
> Net-log: [
> ["PORT" port/locals/active-check] "200"]
> Net-log: "200 PORT command successful."
> Net-log: [
> ["CWD" either empty? port/path ["./"] [join "./" port/path]]
> "250"]
> Net-log: {250 "/test" is new cwd.}
> Net-log: [
> ["TYPE A"] ["200"]]
> Net-log: "200 Type okay."
> Net-log: [
> ["LIST"] ["150" "125"]]
> Net-log: {150 Opening ASCII mode data connection for /bin/ls.}
> Net-log: [
> none "226"]
> Net-log: "226 Listing completed."
>
> And here's the output when reading an empty directory...
>
> Net-log: [
> "SYST" "*"]
> Net-log: "215 UNIX Type: L8"
> Net-log: [
> ["PORT" port/locals/active-check] "200"]
> Net-log: "200 PORT command successful."
> Net-log: [
> ["CWD" either empty? port/path ["./"] [join "./" port/path]]
> "250"]
> Net-log: {250 "/d" is new cwd.}
> Net-log: [
> ["TYPE A"] ["200"]]
> Net-log: "200 Type okay."
> Net-log: [
> ["LIST"] ["150" "125"]]
> Net-log: {150 Opening ASCII mode data connection for /bin/ls.}
> Net-log: [
> none "226"]
> Net-log: "226 Listing completed."
> Net-log: [
> ["PORT" port/locals/active-check] "200"]
> Net-log: "200 PORT command successful."
> ** Access Error: Port none not open
> ** Where: parse-dir-list
>
> As far as I can tell, the extra...
>
> Net-log: [
> ["PORT" port/locals/active-check] "200"]
> Net-log: "200 PORT command successful."
>
> on the end there just before the error is the only difference the
> trace shows. And I'm still none the wiser...
>
> --
> Carl Read
--
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.