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

[REBOL] Re: Reading empty directories via FTP error

From: carl:cybercraft at: 24-Dec-2003 22:45

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