Will create the directory structure if it doesn't exist.