Let the file manager create the intermediate directories to the specified cache if they do not exist.