Rename id before confirm

This commit is contained in:
Mike Phares 2023-02-05 11:59:45 -07:00
parent d35e98b5f8
commit be932a8828

View File

@ -348,7 +348,6 @@ public class Rename
{
results.Add(fileHolder.NameWithoutExtension);
File.Move(fileHolder.FullName, to);
File.WriteAllText($"{to}.id", $"{to}{Environment.NewLine}{fileHolder.FullName}");
}
log.Information("Done Moving");
}
@ -395,6 +394,8 @@ public class Rename
if (File.Exists(to))
continue;
verifiedToDoCollection.Add(new(fileHolder, to));
if (string.IsNullOrEmpty(_AppSettings.CopyTo))
File.WriteAllText($"{to}.id", $"{to}{Environment.NewLine}{fileHolder.FullName}");
}
if (!verifiedToDoCollection.Any())
continue;