require: check for index files in named directories