WL-3424 Don’t warn about not indexing directories.

If it’s an event that we don’t do any indexing for we don’t need to warn about this.
Merge pull request #9 from ox-it/WL-3424

WL-3424 Don’t warn about not indexing directories.