Re: An API for index.html contents?
Re: An API for index.html contents?
- Subject: Re: An API for index.html contents?
- From: "Joshua D. Orr" <email@hidden>
- Date: Fri, 24 Jun 2005 08:27:59 -0600
It's your webserver that is returning the HTML, and in order to fix
it you are going to have to either somehow configure the web server,
or create a script on your webserver that will list the directory and
return it how you want (like a php script). I have to do a similar
thing for one of my projects, and I simply use a php script, like:
http://www.mydomain.com/dirLister.php?dir=/myFolder
On Jun 24, 2005, at 8:03 AM, Lorenzo wrote:
Hi,
I have been trying to get the content list of a folder on my web
site using
url = [NSURL URLWithString:@"http://www.mydomain.com/myFolder/"];
index = [NSString stringWithContentsOfURL:url];
but I get an HTML tagged file and not a mere text list of the
content as
..
file_a.jpg
file_b.jpg
folder_a
xfile_c.jpg
Basically I have to scan myFolder and (eventually) its subfolders
in order
to get all the files with extensions jpg. And yes, myFolder lets me
list its
content. It should be fine to have an API like
[manager directoryContentsAtPath:myfolderPath]
but working even with URL. Do you know how to do?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40xmission.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden