• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
An API for index.html contents?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An API for index.html contents?


  • Subject: An API for index.html contents?
  • From: Lorenzo <email@hidden>
  • Date: Fri, 24 Jun 2005 16:03:37 +0200

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: An API for index.html contents?
      • From: "Joshua D. Orr" <email@hidden>
  • Prev by Date: Making Inspectors
  • Next by Date: Re: Why isn't my app showing up in launched applications
  • Previous by thread: Re: Making Inspectors
  • Next by thread: Re: An API for index.html contents?
  • Index(es):
    • Date
    • Thread