private string GetReal_savePath()
        {
            var path = MapPathUtil.MapPath("~/plugin");

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            return(path);
        }
示例#2
0
 static ConfigManager()
 {
     ConfigPath = Path.Combine(MapPathUtil.MapPath("~/Config"), "config.xml");
     if (File.Exists(ConfigPath))
     {
         config = XDocument.Load(ConfigPath);
     }
     else
     {
         config = new XDocument(new XElement("configs"));
     }
 }
示例#3
0
 public string GetPluginUpdateDownloadFolder()
 {
     return(Path.Combine(new DirectoryInfo(MapPathUtil.MapPath("~/")).Parent.FullName, @"tqdashboardUpdate\pluginupdate"));
 }
示例#4
0
 private string GetDashboardFolder()
 {
     return(MapPathUtil.MapPath("~/"));
 }