Finish the basic function to get a folder size