23 lines
529 B
C#
23 lines
529 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace QuestValidator.Helpers
|
|
{
|
|
public static class DiskHelpers
|
|
{
|
|
public static void CreateDirIfDoesntExist(string path)
|
|
{
|
|
if (!Directory.Exists($"{path}"))
|
|
{
|
|
//create dump dir
|
|
Directory.CreateDirectory($"{path}");
|
|
}
|
|
}
|
|
|
|
public static string[] GetJsonFiles(string path)
|
|
{
|
|
return Directory.GetFiles(path, "*.json", SearchOption.TopDirectoryOnly);
|
|
}
|
|
}
|
|
}
|