2024-12-23 18:42:50 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MxFilterGen2.IO
|
|
|
|
|
{
|
|
|
|
|
internal class Cleaner
|
|
|
|
|
{
|
|
|
|
|
public static void CleanOut()
|
|
|
|
|
{
|
|
|
|
|
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");
|
2024-12-27 17:05:41 -05:00
|
|
|
|
}
|
|
|
|
|
var gens = Directory.GetFiles("out/Gen");
|
|
|
|
|
foreach (var g in gens)
|
|
|
|
|
{
|
|
|
|
|
File.Delete(g);
|
|
|
|
|
}
|
2024-12-23 18:42:50 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|