I have the following scenario:
C:.
โ Doxyfile
โ
โโโโa
โ dummy.hpp
โ README.md
โ
โโโโaa
โ README.md
โ
โโโโaaa
README.md
In each README.md I have a \dir . documentation for that directory. Generating the documentation for that (EXTRACT_ALL, RECURSIVE; see Doxyfile).
In the resulting file page the directoy aaa has a file icon.

I consider this a bug.
Setup:
DoxyfileI can see the issue, but it took me some time to reproduce it as at first I missed the dummy.hpp, even though all relevant information is present, for the future:
Full example: example.tar.gz
I've just pushed a proposed patch, pull request #7654
Code has been integrated in master on github (please don't close the issue as this will be done at the moment of an official release).
This issue was previously marked 'fixed but not released',
which means it should be fixed in doxygen version 1.8.18.
Please verify if this is indeed the case. Reopen the
issue if you think it is not fixed and please include any additional information
that you think can be relevant (preferably in the form of a self-contained example).