Deal with zero sized files and duplicates. Logs.