TODO
Don't call filename_ignore_search twice with the same filename.