31 lines
768 B
C#
31 lines
768 B
C#
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");
|
|
}
|
|
var gens = Directory.GetFiles("out/Gen");
|
|
foreach (var g in gens)
|
|
{
|
|
File.Delete(g);
|
|
}
|
|
}
|
|
}
|
|
}
|