This PhoneGap plugin allows you to get directory size.