Files
Argus/Infrastructure/StoragePaths.cs
T
Курнат Андрей 5f80c4bf6a Initial Argus web catalog
2026-06-20 19:55:11 +03:00

15 lines
419 B
C#

namespace Argus.Infrastructure;
public sealed class StoragePaths(IHostEnvironment hostEnvironment)
{
public string DataRootPath => Path.Combine(hostEnvironment.ContentRootPath, "Data");
public string PackagesRootPath => Path.Combine(DataRootPath, "Packages");
public void EnsureCreated()
{
Directory.CreateDirectory(DataRootPath);
Directory.CreateDirectory(PackagesRootPath);
}
}