[REBOL] Re: FTP scheme was Re: Reading empty directories via FTP error
From: rotenca:telvia:it at: 15-Nov-2003 15:56
Hi all,
> CR> Net-log: ["LIST results:" {
> CR> drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir-
> CR> drwxrwsr-x 4 212 217 1024 Jan 25 2002 -dir-
> CR> drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir-
> CR> drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir-
> CR> drwxrwsr-x 2 212 217 1024 Jan 25 2002 -dir-
> CR> -rw-rw-r-- 1 99 users 2095 Jan 24 2002 -file-
> CR> drwxrwsr-x 2 212 217 1024 May 17 2001 -dir-
> CR> -rw-r--r-- 1 212 users 138 May 10 2001 -file-
> CR> -rw-r--r-- 1 212 217 5528 May 10 2001 -file-
> CR> drwxrwxr-x 2 99 99 7168 Nov 8 08:37 -dir-
> CR> }]
> CR> == [-10 files that should be 24-]
The problem with directory listing in the ftp protocol is known:
rfc 959:
Since the information on a file may vary widely from system
to system, this information may be hard to use automatically
in a program, but may be quite useful to a human user.
New commands have been proposed, see the abbstract of
http://www.ietf.org/internet-drafts/draft-ietf-ftpext-mlst-16.txt
In order to overcome the problems caused by the undefined format of the
current FTP LIST command output, a new command is needed to transfer
standardized listing information from Server-FTP to User- FTP. Commands to
enable this are defined in this document.
I think that there is little to do for the existing ftp protocol. Also because
NLIST is not always implemented, if LIST is implemented. And this happens also
if the http://www.wu-ftpd.org/rfc/rfc1123.html says (1989) that NLIST MUST be
implemented.
---
Ciao
Romano