[REBOL] ftp bug
From: rotenca::telvia::it at: 4-Jun-2002 22:02
I have a problem with a ftp read.
1) i did not chanage rebol code and it worked some time ago
2) a window ftp program reads the same site correctly
I think the problem is in the date format (year or time). Here it is raw data
read by Rebol ftp:
-rw-r--r-- 1 [otenc--tiscali--it] ftpuser 14940 Dec 21 13:13 GNU.txt
-rw-r--r-- 1 [otenc--tiscali--it] ftpuser 27709 Nov 10 2001 anamonitor.r
-rw-r--r-- 1 [otenc--tiscali--it] ftpuser 1545 Nov 16 2001 gcmask.r
-rw-r--r-- 1 [otenc--tiscali--it] ftpuser 3194 Jan 10 13:19 getpath.r
-rw-r--r-- 1 [otenc--tiscali--it] ftpuser 18353 Dec 21 13:27 gpl.txt
-rw-r--r-- 1 [otenc--tiscali--it] ftpuser 1103 Jan 13 18:42 index.r
-rw-r--r-- 1 [otenc--tiscali--it] ftpuser 3773 Nov 13 2001 memusage.r
-rw-r--r-- 1 [otenc--tiscali--it] ftpuser 1199 Dec 22 01:15 refine.r
The window ftp program set the time at 00:00:00 when it read the year (2001)
instead of the time.
Here it is the session after successfully handshake:
Net-log: ["Opening" "tcp" "for" "FTP"]
...
Net-log: "230 Quotas on: using 70.16 of 20480.00 kb"
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]] "25*"]
Net-log: "250 CWD 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: "226 Quotas on: using 70.16 of 20480.00 kb"
** Script Error: parse expected input argument of type: series
** Where: parse-files
** Near: pdate: parse date none
add-date
---
Ciao
Romano