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: carl:cybercraft at: 24-Dec-2003 22:47

On 15-Nov-03, Brett Handley wrote:
> Hi Carl, >> Running it output... >> >> Inserted NET-LOG for received NLST results. > Sorry, my little patches are getting too complex now, this output > shows that there logging for LIST is missing - the patch must have > decided that things were too different - so it did not insert the > line. I know you've figured out how to do it manually in the > protocol, so could you try inserting: > net-utils/net-log ["LIST results:" file-list] > directly before > if empty? file-list [ > within the parse-dir-list function. > With this change in place, you should be able to see the > re-assembled directory listing from the server that will be parsed.
Okay - that gives...
>> read -url-
URL Parse: -user- -password- -url- none web/ none Net-log: [ ["PORT" port/locals/active-check] "200"] Net-log: "200 PORT command successful." Net-log: [ ["TYPE A"] ["200"]] Net-log: "200 Type set to A." Net-log: [ ["LIST"] ["150" "125"]] Net-log: {150 Opening ASCII mode data connection for file list.} Net-log: [ none "226"] Net-log: "226 Transfer complete." Net-log: ["LIST results:" { drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir- drwxrwsr-x 4 212 217 1024 Jan 25 2002 -dir- drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir- drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir- drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir- -rw-rw-r-- 1 99 users 2095 Jan 24 2002 -file- drwxrwsr-x 2 212 217 1024 May 17 2001 -dir- -rw-r--r-- 1 212 users 138 May 10 2001 -file- -rw-r--r-- 1 212 217 5528 May 10 2001 -file- drwxrwxr-x 2 99 99 7168 Nov 8 08:37 -dir- }] == [-10 files that should be 24-]
> If it amuses you, you could poke the net-utils/net-log line with > custom output wherever else you think it would be useful in the > protocol for sorting this out. :-)
I played around with it a bit but didn't get any useful results. I wondered if re-writing the... while [line: system/words/pick port/sub-port 1] in parse-dir-list to grab every char that's sent would be useful to see if it's missing anything, but I've not looked into it yet. Would you know how to do that? Either REBOL's skipping stuff it shouldn't be - or not asking for stuff it should be asking for - I'm assuming... -- Carl Read