Added file type as comparing criteria to equals method of FileInfo.