fixed dest on ModFile
This commit is contained in:
@@ -43,7 +43,7 @@ impl ModFile {
|
|||||||
let source_root = from_mod.source.join(&dir_type.source);
|
let source_root = from_mod.source.join(&dir_type.source);
|
||||||
let priority = dir_type.priority.unwrap_or(0);
|
let priority = dir_type.priority.unwrap_or(0);
|
||||||
let dest_base: PathBuf =
|
let dest_base: PathBuf =
|
||||||
Path::new("data").join(PathBuf::from(dir_type.destination.unwrap_or_default()));
|
Path::new("Data").join(PathBuf::from(dir_type.destination.unwrap_or_default()));
|
||||||
|
|
||||||
Ok(walk_files_recursive(&source_root)?
|
Ok(walk_files_recursive(&source_root)?
|
||||||
.map(|file| Self {
|
.map(|file| Self {
|
||||||
@@ -53,7 +53,7 @@ impl ModFile {
|
|||||||
.strip_prefix(&from_mod.source)
|
.strip_prefix(&from_mod.source)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_owned(),
|
.to_owned(),
|
||||||
dest: dest_base.clone(),
|
dest: dest_base.join(file.path().strip_prefix(&source_root).unwrap()),
|
||||||
})
|
})
|
||||||
.collect())
|
.collect())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user