• 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: readdir vs. getdirentriesattr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readdir vs. getdirentriesattr


  • Subject: Re: readdir vs. getdirentriesattr
  • From: Jim Luther <email@hidden>
  • Date: Tue, 13 Jan 2015 12:47:57 -0800

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@hidden> wrote:

On Tue, Jan 13, 2015 at 7:21 PM, Eric Tamura <email@hidden> 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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: readdir vs. getdirentriesattr
      • From: Thomas Tempelmann <email@hidden>
References: 
 >Re: readdir vs. getdirentriesattr (From: Thomas Tempelmann <email@hidden>)
 >Re: readdir vs. getdirentriesattr (From: Eric Tamura <email@hidden>)
 >Re: readdir vs. getdirentriesattr (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: Re: readdir vs. getdirentriesattr
  • Next by Date: Re: readdir vs. getdirentriesattr
  • Previous by thread: Re: readdir vs. getdirentriesattr
  • Next by thread: Re: readdir vs. getdirentriesattr
  • Index(es):
    • Date
    • Thread