Prune non-existent files from the index before indexing files