gary.rathbone at btclick.com
Mon Sep 2 14:15:01 EDT 2002
Try this *exactly* in a button script....
put "ftp://ftp.metacard.com/MetaCard/" into tUrl
put url tUrl
-rw-r--r-- 1 ftpuser ftpgroup 3429220 Aug 20 03:34 MacOS.sit
-rw-r--r-- 1 ftpuser ftpgroup 2053629 Aug 20 03:35 MacOS68K.sit
-rw-r--r-- 1 ftpuser ftpgroup 4275781 Aug 20 03:37 MacOSX.sit
-rw-r--r-- 1 ftpuser ftpgroup 3317 Apr 17 01:31 README.1st
which you can then parse. I guess some servers won't return a directory
listing due to the way they're configured...
----- Original Message -----
From: "Dan Friedman" <dan at clearvisiontech.com>
To: <use-revolution at lists.runrev.com>
Sent: Monday, September 02, 2002 7:05 PM
Subject: List Files
> That did not solve the problem... Anyone else have a suggestion? --
> >> My application creates files and I want to provide a way for the user
> >> post these files to a website or file server. Uploading and
> >> files is no problem. But, I want to list the files that are currently
> >> the website or file server. How do you do this?
> >> I tried using the "files" and "folders" functions, but I can't get the
> >> defaultFolder property set to a non-local directory. For example:
> >> set the defaultFolder to "ftp://user:firstname.lastname@example.orgSite.com" returns
> >> "Can't open directory."
> >> Anyone have any suggestions?
> > Put "/" after the URL to denote a directory.
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the Use-livecode