Skip to content

Commit

Permalink
Update Program.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vi014 authored Jun 23, 2024
1 parent a144f91 commit f91c3ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ private static void OnChanged(object sender, FileSystemEventArgs e)
{
lastRead = now;

String date = $"{month}{week}{day}.{fileType}";
System.Console.WriteLine(date);
String newSaveName = $"{month}{week}{day}.{fileType}";
System.Console.WriteLine(newSaveName);

try
{
Thread.Sleep(500);
File.Copy(filePath+fileName, filePath+date+"."+fileType, true);
File.Copy(filePath+fileName, filePath+newSaveName, true);
}
catch (Exception ex)
{
Expand Down

0 comments on commit f91c3ff

Please sign in to comment.