Replace trailing period in folder names when saving plugin file

NTFS apparently does not like that and it breaks.
This commit is contained in:
Tyler Hallada 2022-09-27 12:18:25 -04:00
parent 203af0adc9
commit 589b00923e

View File

@ -151,7 +151,7 @@ pub async fn process_plugin(
game_name,
&format!("{}", db_mod.nexus_mod_id),
&format!("{}", db_file.nexus_file_id),
file_path,
&file_path.replace("./", "/"), // NTFS does not like trailing periods in folder names
]
.iter()
.collect::<PathBuf>();