2021-08-24 12:07:09 +01:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
2021-11-23 13:01:42 +00:00
|
|
|
|
namespace Common;
|
|
|
|
|
public static class DiskHelpers
|
2021-08-24 12:07:09 +01:00
|
|
|
|
{
|
2021-11-23 13:01:42 +00:00
|
|
|
|
public static void CreateDirIfDoesntExist(string path)
|
2021-08-24 12:07:09 +01:00
|
|
|
|
{
|
2021-11-23 13:01:42 +00:00
|
|
|
|
if (!Directory.Exists($"{path}"))
|
2021-08-24 12:07:09 +01:00
|
|
|
|
{
|
2021-11-23 13:01:42 +00:00
|
|
|
|
//create dump dir
|
|
|
|
|
Directory.CreateDirectory($"{path}");
|
2021-08-24 12:07:09 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|