修改存储路径

This commit is contained in:
2022-05-27 16:30:20 +08:00
parent 72d84b18d4
commit b5f09e9774
5 changed files with 26 additions and 9 deletions
@@ -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;
}
}