if an duplicate file was found, the seccond will be deleted