During the directory search, ct_ds_lookup invokes the directory callback once for each entry that is found in the search.