1.1.2 - Renamed JSON.settings to JSON.Settings + Minor tweaks
This commit is contained in:
@@ -11,14 +11,14 @@ namespace MxFilterGen2.IO
|
||||
{
|
||||
public static void CleanOut()
|
||||
{
|
||||
foreach (string f in JSON.settings.GetType())
|
||||
foreach (string f in JSON.Settings.GetType())
|
||||
{
|
||||
String[] files = Directory.GetFiles($"out/{f}", "*.*");
|
||||
foreach (String file in files)
|
||||
{
|
||||
File.Delete(file);
|
||||
}
|
||||
File.Delete($"out/{JSON.settings.GetName()}_{f}.filter");
|
||||
File.Delete($"out/{JSON.Settings.GetName()}_{f}.filter");
|
||||
}
|
||||
var gens = Directory.GetFiles("out/Gen");
|
||||
foreach (var g in gens)
|
||||
|
||||
@@ -14,7 +14,8 @@ namespace MxFilterGen2.IO
|
||||
Message.CMW($"Checking and creating the base directories...", true, 2);
|
||||
if (!Directory.Exists($"filson")) { Directory.CreateDirectory($"filson"); }
|
||||
if (!Directory.Exists($"out")) { Directory.CreateDirectory($"out"); }
|
||||
foreach (string f in JSON.settings.GetType())
|
||||
if (!Directory.Exists($"out/Gen")) { Directory.CreateDirectory($"out/Gen"); }
|
||||
foreach (string f in JSON.Settings.GetType())
|
||||
{
|
||||
if (!Directory.Exists($"out/{f}")) { Directory.CreateDirectory($"out/{f}"); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user