I would like to calculate the size of a directory and all its contents. All the solutions that I've come across either use NSFileManager (which doesn't take resource forks into account when calculating the file size) or this carbon code which uses deprecated functions.
How should we now get an accurate folder size using Cocoa ?
I solved this:
The result is exactly the same as the finder.