Create a directory before export a config file to it.