FTP listing using "libURLftpCommand"
Jan Schenkel
janschenkel at yahoo.com
Tue Jan 19 01:31:33 EST 2010
Hi Stephen,
Try changing the FTP list command before you get that URL.
##
libUrlSetListCommand "NLST"
put URL ("ftp://user:pass@host.com/directory/") into theListOfFiles
##
If the ftp daemon supports the 'new list' format, it will be easier and more predictable to parse.
HTH,
Jan Schenkel
=====
Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
--- On Mon, 1/18/10, stephen barncard <stephenREVOLUTION2 at barncard..com> wrote:
> From: stephen barncard <stephenREVOLUTION2 at barncard.com>
> Subject: Re: FTP listing using "libURLftpCommand"
> To: "How to use Revolution" <use-revolution at lists.runrev.com>
> Date: Monday, January 18, 2010, 4:45 PM
> Thanks...this sort of
> works..... the example needs to use the URL keyword
> though
>
> put URL ("ftp://user:pass@host.com/directory/") into
> theListOfFiles
>
> this does list ok, similar listing to the HTTP method,
> however the dates in
> the listing are not consistent.
>
> drwxr-x--- 21 sbarncar 99
> 4096 Dec 31 03:03 .
>
> drwx--x--x 15 sbarncar sbarncar
> 4096 Jan 15 01:51 ..
>
> -rw-r--r-- 1 sbarncar sbarncar
> 0 Dec 30 12:06 .htaccess
>
> drwxr-xr-x 2 sbarncar sbarncar
> 4096 Jul 11 2009 .smileys
>
> drwxr-xr-x 12 sbarncar sbarncar
> 4096 Jun 20 2009 barncard
>
> drwxr-xr-x 2 sbarncar sbarncar
> 4096 Dec 22 03:35 blasters
>
>
> Some directories have the year, and some just have the
> month and day. Is
> this just the way it is? The year is just not important?
>
> I wonder how Transmit and other FTP clients get this date
> info correctly?
>
> sqb
>
More information about the use-livecode
mailing list