Calculate the size of a folder...
- by iphone_developer
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