Skip navigation.
 
mlRe: Calculating file size
FROM : Jean-Daniel Dupas
DATE : Sun Apr 27 12:40:08 2008

Le 27 avr. 08 à 06:33, Jens Alfke a écrit :

>
> 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.


There is no Cocoa API do to such thing but the CoreServices way is not 
very difficult.
There is some sample in the FS Performance Guidelines (http://developer.apple.com/documentation/Performance/Conceptual/FileSystem/Articles/IteratingFiles.html
)

Related mailsAuthorDate
mlCalculating file size Cocoa Dev Apr 27, 03:50
mlRe: Calculating file size Jens Alfke Apr 27, 06:33
mlRe: Calculating file size Jean-Daniel Dupas Apr 27, 12:40
mlRe: Calculating file size Laurent Cerveau Apr 27, 15:02
mlRe: Calculating file size Jean-Daniel Dupas Apr 27, 15:17
mlRe: Calculating file size Rainer Brockerhoff Apr 27, 19:52
mlRe: Calculating file size ajb.lists Apr 28, 00:39
mlRe: Calculating file size Gerriet M. Denkman… Apr 28, 11:27
mlRe: Calculating file size Jean-Daniel Dupas Apr 28, 12:08
mlRe: Calculating file size Aaron Burghardt Apr 28, 18:58
mlRe: Calculating file size Chris Suter Apr 29, 02:05
mlRe: Calculating file size ajb.lists Apr 29, 12:49
mlRe: Calculating file size Jean-Daniel Dupas Apr 29, 13:56
mlRe: Calculating file size Aaron Burghardt May 2, 03:55