Added creating directory if not exists in JSON load
This commit is contained in:
@@ -1440,6 +1440,12 @@ namespace SlaveMatrix
|
||||
public static string[] JSDPaths()
|
||||
{
|
||||
JsonSavePath = Path.Combine(CurrentDirectory, "save");
|
||||
|
||||
if (!Directory.Exists(JsonSavePath))
|
||||
{
|
||||
Directory.CreateDirectory(JsonSavePath);
|
||||
}
|
||||
|
||||
IEnumerable<string> source = Directory.EnumerateFiles(JsonSavePath);
|
||||
return new string[10]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user