fix: create package folders

This commit is contained in:
daimond113 2024-05-12 12:57:32 +02:00
parent 5fd29cc264
commit d7c421a90e
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C

View file

@ -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<P: AsRef<Path>, Q: AsRef<Path>>(
)),
_ => 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());