Indexer: Check dir permission before reading dir