mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
17 lines
382 B
C#
17 lines
382 B
C#
using Management.Services;
|
|
|
|
public class FileConfiguration
|
|
{
|
|
|
|
public static string GetBasePath()
|
|
{
|
|
string? storageDirectory = Environment.GetEnvironmentVariable("storageDirectory");
|
|
var basePath = storageDirectory ?? Path.GetFullPath("../storage");
|
|
|
|
if (!Directory.Exists(basePath))
|
|
throw new Exception("storage folder not found");
|
|
|
|
return basePath;
|
|
|
|
}
|
|
} |