Handle open handle error when first creating the old file

This commit is contained in:
Raymond 2021-08-09 11:36:27 -04:00
parent 71e549d59d
commit a62680cf5b

View file

@ -142,7 +142,7 @@ namespace Dalamud
var oldFile = new FileInfo(oldPath);
if (!oldFile.Exists)
oldFile.Create();
oldFile.Create().Close();
using var reader = new BinaryReader(logFile.Open(FileMode.Open, FileAccess.Read));
using var writer = new BinaryWriter(oldFile.Open(FileMode.Append, FileAccess.Write));