when indexing, ignore files that cannot be opened