FileScanner full implementation