Add directories to index