How do I find the size of a folder

Hi,

I am trying to work out the size of a folder using File.size(location
of the folder), but this does not seem to return the correct size.

How can I find the size of a folder?

Kind regards,
Dave.