Although watchFolder is only called for directories, there is a small
time frame where the just added directory has been deleted and a file
with the same path has been created. This race condition can be avoided
by adding the KInotify::FlagOnlyDir filter flag.
This has been documented also in e.g. https://lwn.net/Articles/605128/.