Calculate the size of a folder...
Posted
by iphone_developer
on Stack Overflow
See other posts from Stack Overflow
or by iphone_developer
Published on 2010-02-02T23:09:15Z
Indexed on
2010/06/13
4:22 UTC
Read the original article
Hit count: 232
iphone-sdk
|nsfilemanager
Just a quick one...
I'm creating a folder to cache images inside Documents with my iPhone App. I want to be able to keep the size of this folder down to 1MB, so I need to to check the size in bytes of my folder.
I have code to calculate the size of file, but I need the size of the folder.
What would be the best way to do this? Will I need to loop through each file?
Cheers
© Stack Overflow or respective owner