HDDirectory: fix path for items, fixes #14639
Merge pull request #3449 from Karlson2k/dir_cache_fix_01

HDDirectory: fix path for items, fixes #14639