Re: Searching Files on MacOS X
Re: Searching Files on MacOS X
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.