FROM : Rainer Brockerhoff
DATE : Sun Apr 27 19:52:34 2008
At 02:49 -0700 27/04/08, <email_removed> wrote:
>From: Jens Alfke <<email_removed>>
>References: <<email_removed>>
>In-Reply-To: <<email_removed>>
>Date: Sat, 26 Apr 2008 21:33:26 -0700
>Message-ID: <<email_removed>>
>
>On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote:
>
>>I was wondering what was the best way to calucate folder size with cocoa? I
>>was able to do this but it does not include resource forks:
>
>I think you'll need to drop down to a lower-level API to get the resource fork size; probably one of the "*CatInfo*" calls in <Files.h>. I can't really give specific advice because I haven't used those much since OS 9, and they've changed a lot since.
Check out the FolderSweep code at:
http://www.brockerhoff.net/src/ (at the end of the page).
You would pass in the bit masks asking for both logical fork sizes, and sum them for every file (they're 64bit unsigned integers).
--
Rainer Brockerhoff <<email_removed>>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
DATE : Sun Apr 27 19:52:34 2008
At 02:49 -0700 27/04/08, <email_removed> wrote:
>From: Jens Alfke <<email_removed>>
>References: <<email_removed>>
>In-Reply-To: <<email_removed>>
>Date: Sat, 26 Apr 2008 21:33:26 -0700
>Message-ID: <<email_removed>>
>
>On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote:
>
>>I was wondering what was the best way to calucate folder size with cocoa? I
>>was able to do this but it does not include resource forks:
>
>I think you'll need to drop down to a lower-level API to get the resource fork size; probably one of the "*CatInfo*" calls in <Files.h>. I can't really give specific advice because I haven't used those much since OS 9, and they've changed a lot since.
Check out the FolderSweep code at:
http://www.brockerhoff.net/src/ (at the end of the page).
You would pass in the bit masks asking for both logical fork sizes, and sum them for every file (they're 64bit unsigned integers).
--
Rainer Brockerhoff <<email_removed>>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
| Related mails | Author | Date |
|---|---|---|
| Cocoa Dev | Apr 27, 03:50 | |
| Jens Alfke | Apr 27, 06:33 | |
| Jean-Daniel Dupas | Apr 27, 12:40 | |
| Laurent Cerveau | Apr 27, 15:02 | |
| Jean-Daniel Dupas | Apr 27, 15:17 | |
| Rainer Brockerhoff | Apr 27, 19:52 | |
| ajb.lists | Apr 28, 00:39 | |
| Gerriet M. Denkman… | Apr 28, 11:27 | |
| Jean-Daniel Dupas | Apr 28, 12:08 | |
| Aaron Burghardt | Apr 28, 18:58 | |
| Chris Suter | Apr 29, 02:05 | |
| ajb.lists | Apr 29, 12:49 | |
| Jean-Daniel Dupas | Apr 29, 13:56 | |
| Aaron Burghardt | May 2, 03:55 |






Cocoa mail archive

