From d4f58bf69a524faf5cfdd135c83f2b43335deb9e Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Sat, 24 Jan 2026 12:32:44 +1030 Subject: [PATCH] Update install_utils.rs --- src/command/install_utils.rs | 4 ++++ 1 file changed, 4 insertions(+) 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());