15 lines
419 B
C#
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);
|
|
}
|
|
}
|