In Yosemite (10.10), Carbon's PBGetCatalogInfoBulk and directory enumerators created with CoreFoundation's CFURLEnumerator (it's in CFURLEnumerator.h, not CFURL.h) both use getattrlistbulk() instead of readdir() or getdirentriesattr(). Foundation API like- [NSFileManager contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:] are layered upon CFURLEnumerator so they are using getattrlistbulk(), too.
For the most part, all of Apple's code has switched from getdirentriesattr() to getattrlistbulk(). - Jim > On Jan 13, 2015, at 11:28 AM, Thomas Tempelmann <[email protected]> wrote: > > On Tue, Jan 13, 2015 at 7:21 PM, Eric Tamura <[email protected] > <mailto:[email protected]>> wrote: > HFS, AFP, and SMB all support getattrlistbulk() natively. > > Thanks for the clarification, Eric. > > Do any of the higher level APIs also make use of this call, or do I have to > use this call to take advantage of its functionality? > > I guess that NSURL's > contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error: makes use > of it. > > I can't find a CFURL equivalent for this bulk call, though. Has it been > omitted or am I just looking at the wrong docs? > > And what about PBGetCatalogInfoBulk and FSOpenIterator with related functions? > > Thomas > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Filesystem-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/filesystem-dev/luther.j%40apple.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Filesystem-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/filesystem-dev/archive%40mail-archive.com This email sent to [email protected]
