file exists
This commit is contained in:
@@ -8,8 +8,11 @@ public class JsonFileContainer(string filePath) : JsonDataContainer
|
||||
{
|
||||
lock (_lock_FileAction)
|
||||
{
|
||||
using var sw = new StreamReader(filePath);
|
||||
GetSerializer().Populate(sw, this);
|
||||
if (File.Exists(filePath))
|
||||
{
|
||||
using var sw = new StreamReader(filePath);
|
||||
GetSerializer().Populate(sw, this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user