copy new mods to !new_$time
This commit is contained in:
parent
810a4fa8fc
commit
e781df8562
@ -180,6 +180,17 @@ static class Merge
|
|||||||
"m", not_found_mods.MergeToString('\n'));
|
"m", not_found_mods.MergeToString('\n'));
|
||||||
if (unchanged_mods.Count>0)
|
if (unchanged_mods.Count>0)
|
||||||
Log("w", $"unchanged {unchanged_mods.Count}");
|
Log("w", $"unchanged {unchanged_mods.Count}");
|
||||||
|
|
||||||
|
IOPath new_mods_copy_dir = Path.Concat(backup_dir.ParentDir(),
|
||||||
|
$"!new_{DateTime.Now.ToString(MyTimeFormat.ForFileNames)}");
|
||||||
|
ConsoleAskYN($"copy new mods to {new_mods_copy_dir}", () =>
|
||||||
|
{
|
||||||
|
foreach (var mod in added_mods)
|
||||||
|
{
|
||||||
|
Directory.Copy(mod, Path.Concat(new_mods_copy_dir, mod), false);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void RenameModsCommandHandler(string dir_with_mods, string rename_pairs_str)
|
public static void RenameModsCommandHandler(string dir_with_mods, string rename_pairs_str)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user