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