windows linux 环境路径修改 迁移
continuous-integration/drone/push Build is passing Details

Uat_Study
hang 2023-12-08 12:44:35 +08:00
parent dd9ec3d8fe
commit dc8451f55c
1 changed files with 3 additions and 2 deletions

View File

@ -142,8 +142,9 @@ public static class FileStoreHelper
//API vue 部署目录 //API vue 部署目录
public static string GetIRaCISRootPath(IWebHostEnvironment _hostEnvironment) public static string GetIRaCISRootPath(IWebHostEnvironment _hostEnvironment)
{ {
var rootPath = (Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\'))).IfNullThrowException().FullName; string parentDirectory = Path.GetFullPath(Path.Combine(_hostEnvironment.ContentRootPath, ".."));
return rootPath;
return parentDirectory;
} }