util: create parents of disk cache directory if needed
What does this MR do and why?
util: create parents of disk cache directory if needed
Currently the shader cache is broken when running under flatpak-spawn because the shader cache's parent directory will not exist. For example, the shader cache directory might be:
/home/mcatanzaro/.var/app/org.gnome.Epiphany.Devel/cache
If /home/mcatanzaro/.var/app/org.gnome.Epiphany.Devel/ does not already exist, we fail. Let's create the directories recursively, as if by 'mkdir -p', rather than just fail.
Fixes #8294 (closed)