Do check if file exists manually
BUG: 342876
FIXED-IN: 5.21
When KRunner sets the type set to Dir or File is ignored. This makes IMO no sense at all because that suggests that the runners can expect the term to match a valid filepath when it does not, see https://phabricator.kde.org/T13616 where I have collected some thoughts about the Plasma::RunnerContext::Type
issue in general.
Also I would propose to remove the hack in KRunner, because that just makes no sense^^
To test this out run the following queries:
~/Downloads
~/downloads
But the runner seems in general in need of a bit of love.
Also completion for paths has been requested very often, which is sth. this runner could benefit from.