List Files
Gary Rathbone
gary.rathbone at btclick.com
Mon Sep 2 14:15:01 EDT 2002
Dan
Try this *exactly* in a button script....
on mouseup
put "ftp://ftp.metacard.com/MetaCard/" into tUrl
put url tUrl
end mouseup
this returns
-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
etc...
which you can then parse. I guess some servers won't return a directory
listing due to the way they're configured...
Regards
Gary Rathbone
----- 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? --
Thanks!
>
> >> My application creates files and I want to provide a way for the user
to
> >> post these files to a website or file server. Uploading and
Downloading the
> >> files is no problem. But, I want to list the files that are currently
on
> >> 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:passowrd@ftp.webSite.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
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list