22 lines
516 B
C#
Raw Permalink Normal View History

2021-09-19 18:29:16 +01:00
using System.IO;
namespace MarketPriceLookup.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.AllDirectories);
}
}
}