Cache: check for invalid paths in getFileInfo/getDirectoryContent