Initial Argus web catalog
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user