diff --git a/src/linking_file.rs b/src/linking_file.rs index 7f5825b..dd6b330 100644 --- a/src/linking_file.rs +++ b/src/linking_file.rs @@ -1,6 +1,6 @@ use std::{ collections::HashSet, - fs::{read_to_string, write}, + fs::{create_dir_all, read_to_string, write}, path::{Component, Path, PathBuf}, }; @@ -158,7 +158,7 @@ pub(crate) fn link, Q: AsRef>( )), _ => destination_dir.as_ref().to_path_buf(), }; - + create_dir_all(&destination_dir)?; let destination_file = destination_dir.join(desired_name.to_string() + ".lua"); let realm_folder = project.path().join(resolved_pkg.packages_folder());