fix: CDirectoryCache::FileExists failed for cached directories with no parent
Merge pull request #2827 from alcoheca/dir-cache-exists

CDirectoryCache::FileExists failing for cached directories with no parent