Added directory recursion to file size calculation