I can't see this working - how will you check the files are ok? Virus definitions take a lot of space . I think the Arduino will also be far too slow.
Bear in mind too infected files can have false extensions, you need check file headers too, when you look at file types .