diff --git a/src/command/install_utils.rs b/src/command/install_utils.rs index 3e3ce53..3ee0446 100644 --- a/src/command/install_utils.rs +++ b/src/command/install_utils.rs @@ -287,6 +287,10 @@ where async fn move_from_temp(temp: &str, dir: &str) -> Result<(), io::Error> { let entries = std::fs::read_dir(temp)?; + if !std::fs::exists(dir)? { + std::fs::create_dir_all(dir)? + } + let entries: Vec = entries.map(|res| res.unwrap()).collect(); for entry in entries.iter() { info!("Moving\t: {}", entry.path().to_str().unwrap());