In case a file is skipped by a name filter there is no need to determine
the mimetype (which is costly, as a content based mimetype is used here).
Avoid multiple debug messages per file, only issue "Indexing ..." in
case the file is not skipped. All "Skipping ..." paths have a distinct.
debug/warning message.