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