Cumulative Folder Size
Cumulative Folder Size
- Subject: Cumulative Folder Size
- From: Martin mahal Halter <email@hidden>
- Date: Thu, 23 Feb 2012 12:13:33 +0100
Dear List,
Lion Finder has some kind of cache for the overall size of a folder. Try on a server volume (Mac OS X Lion Server AFP):
* Open a Folder with lots of Subfolders
* Menu View > as List
* Menu View > Arrange By > Size
* Finder shows all subfolders in the "---" group
* Menu View > Show View Options
* check the box "Calculate all File Sizes"
* now Finders groups the subfolders appropriately
* close that window, disconnect server and connect again
* the sizes are there immediately (and also when not arranged by size)
I checked NSURL resource values, xattr, getdirentriesattr and MDItem but couldn't find this size. I did find the kMDItemFSNodeCount that gives me the amount of subitems but not the size.
-> where is this information stored? which API to use?
Best regards,
mahal
_______________________________________________
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