When rejecting files, go through the list only once.