No filesize for directories

Calculating the size throws warnings because of divisions by 0.
Merge pull request #2 from malles/master

No filesize for directories - thank @malles