No filesize for directories

Calculating the size throws warnings because of divisions by 0.