//根据文件类型得到文件夹名称,只有文件类型为 File 时采用配置文件,其他情况下程序内部设定 internal static string GetWholeFolderPath(FileType fileType) { string resValue = "App_Data/Log_" + fileType.ToString(); if (fileType == FileType.File) { string configValue1 = AppConfig.GetFinalConfig("logToFilePath", "", LogApi.GetLogToFilePath()); resValue = string.IsNullOrEmpty(configValue1) ? resValue : configValue1; } if (string.IsNullOrEmpty(Path.GetPathRoot(resValue))) { resValue = AppDomain.CurrentDomain.BaseDirectory + "/" + resValue; } return(resValue + "/"); }