Cleanup file size code in scanner
Merge pull request #2415 from mano3m/develop_fix_scanner

Cleanup file size code in scanner