ensure that the folders for the files are there or the state will fail