Allow plugging of the directory indexing