Obtaining the size of a directory
Obtaining the size of a directory
- Subject: Obtaining the size of a directory
- From: Dominik Freyer <email@hidden>
- Date: Mon, 18 Oct 2004 10:40:51 +0200
Hi there,
I'm sure this question has been posted before, but I couldn't find a
satisfacting answer anywhere. I'm buidling an application which has to
go through a lot of Directories and get their sizes. I tried to use the
fileAttributesAtPath method from the Filemanager (and the fileSize
method to get it). It works perfectly for files but not for
directories.
It seems to me, that the NSFilemanager doesn't count the sizes of the
dircontents but shows something like a internal size information.
Probably to safe time, I'm not sure. Any idea to get the dir-sizes fast
und correct?
Best regards
Dominik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden