using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.IO;
using System.Drawing.Imaging;
using System.Reflection;
namespace SuchSofts.OpenImage.Lib.Operation
{
internal class CommonOperations
{
publicstaticvoid EmptyFolder(string path)
{
DirectoryInfo folder = new DirectoryInfo(path);
foreach (DirectoryInfo subFolder in folder.GetDirectories())
{
EmptyFolder(subFolder.FullName);
subFolder.Delete();
}
foreach (FileInfo file in folder.GetFiles())
{
file.Delete();
}
}
}
}