On 05/03/2009, at 11:13 PM, haresh vavdiya wrote:
enumeratorAtPath is not helpful because we don't know exact path...
we have to search in whole directories....is there any another way
to do that.
Umm... well a path of "/" represents the entire volume...
To be honest scanning the whole disk is a poor strategy. Music files
are usually found in a few expected places, try looking there (like "~/
Music") or by querying the location of the iTunes music folder from
its plist. If you do scan the whole disk, expect it to take many, many
minutes. As another poster suggested, the Spotlight APIs might help
you because they've already indexed the disk and know where files of a
given type are.
--Graham
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com