• 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: Get size of folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get size of folder


  • Subject: Re: Get size of folder
  • From: Alastair Houghton <email@hidden>
  • Date: Wed, 19 Aug 2009 11:32:49 +0100

On 19 Aug 2009, at 11:14, Charles Srstka wrote:

I just tried it with Shark, and it appears not to be using the standard BSD opendir and readdir APIs, but rather the proprietary to Apple (as far as I can tell) getdirentriesattr API, which actually does seem to have a man page now, which says that it doesn't work on all volume formats (which means that without further testing, I don't even know if it would work on non-HFS+ disks), so it's not a particularly good idea to use it.

You can, of course, use getattrlist() to *test* whether getdirentriesattr() will work in advance, and then use something else if it doesn't. Which is what Carbon does, in fact.


Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Get size of folder (From: PCWiz <email@hidden>)
 >Re: Get size of folder (From: Charles Srstka <email@hidden>)
 >Re: Get size of folder (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Get size of folder (From: Charles Srstka <email@hidden>)
 >Re: Get size of folder (From: Alastair Houghton <email@hidden>)
 >Re: Get size of folder (From: Charles Srstka <email@hidden>)
 >Re: Get size of folder (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Get size of folder (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Get size of folder
  • Next by Date: Re: int to bytes(value in NSString)
  • Previous by thread: Re: Get size of folder
  • Next by thread: Re: Get size of folder
  • Index(es):
    • Date
    • Thread