Stop scan loop when curren is larger than total
add debug log for file scan if #scanned > #total
Merge pull request #208 from owncloud/stop_scan_loop_whan_lgt_total

Stop scan loop when current is larger than total