we need to recursively create the dir

This commit is contained in:
Ralf Jung 2018-11-27 11:43:02 +01:00
parent b91679539e
commit bd7f4076cd

View File

@ -149,7 +149,7 @@ fn setup(ask_user: bool) {
let dirs = directories::ProjectDirs::from("miri", "miri", "miri").unwrap();
let dir = dirs.cache_dir();
if !dir.exists() {
fs::create_dir(&dir).unwrap();
fs::create_dir_all(&dir).unwrap();
}
// The interesting bit: Xargo.toml
File::create(dir.join("Xargo.toml")).unwrap()