Skip to content

Commit 52fcc68

Browse files
authored
Move over Copy
Move might be better since Replace delete the original file
1 parent 7e350b6 commit 52fcc68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Flow.Launcher.Infrastructure/Storage/JsonStorage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private T LoadDefault()
8181
if(File.Exists(FilePath)
8282
File.Replace(BackupFilePath, FilePath, null);
8383
else
84-
File.Copy(BackupFilePath, FilePath);
84+
File.Move(BackupFilePath, FilePath);
8585

8686
return data;
8787
}

0 commit comments

Comments
 (0)