修改存储路径
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
|
||||
|
||||
using IRaCIS.Core.Domain.Share;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
|
||||
namespace IRaCIS.Core.Application.Helper;
|
||||
|
||||
public static class FileStoreHelper
|
||||
@@ -25,5 +28,18 @@ public static class FileStoreHelper
|
||||
|
||||
return (trustedFileNameForFileStorage, fileName);
|
||||
}
|
||||
|
||||
|
||||
public static string GetIRaCISRootDataFolder(IWebHostEnvironment _hostEnvironment)
|
||||
{
|
||||
var root = (Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\'))).IfNullThrowException().FullName;
|
||||
|
||||
|
||||
var rootFolder =Path.Combine(root, StaticData.IRaCISDataFolder) ;
|
||||
|
||||
|
||||
return rootFolder;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user