• 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
Re: Searching Files on MacOS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching Files on MacOS X


  • Subject: Re: Searching Files on MacOS X
  • From: Nicholas Riley <email@hidden>
  • Date: Tue, 26 Aug 2003 20:07:08 -0500
  • Mail-followup-to: Lorenzo <email@hidden>, "Alastair J.Houghton" <email@hidden>, cocoa-dev <email@hidden>

On Wed, Aug 27, 2003 at 01:55:11AM +0200, Lorenzo wrote:
> Hi,
> thank you for replying,
> the problem is that both the APIs PBCatSearch and FSCatalogSearch
> require the container must be the root of the volume.
> It's written as far as the iterator:
> Currently, this iterator must be created with the kFSIterateSubtree
> option and the container must be the root directory of a volume.
>
> Instead I need to search within a folder and all its subfolders.
> I tried PBCatSearch and it works really fast scanning all the disk in about
> 20 seconds founding thousands of files with filename "default".
> Anyway I cannot scan the whole disk just to search within a simple folder
> with few subfolders.
>
> Do you know something really fast that let me choose a folder and not the
> root of the disk?

Use FSOpenEnumerator / FSGetCatalogInfoBulk. There is some
information here:

<http://developer.apple.com/documentation/Performance/Conceptual/Performance/Carbon/Carbon_and__File_System.html>

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Searching Files on MacOS X (From: "Alastair J.Houghton" <email@hidden>)
 >Re: Searching Files on MacOS X (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: Sleep Notification?
  • Next by Date: Re: Sleep Notification?
  • Previous by thread: Re: Searching Files on MacOS X
  • Next by thread: Re: Searching Files on MacOS X
  • Index(es):
    • Date
    • Thread