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

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            return(path);
        }
Example #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"));
     }
 }
Example #3
0
 public string GetPluginUpdateDownloadFolder()
 {
     return(Path.Combine(new DirectoryInfo(MapPathUtil.MapPath("~/")).Parent.FullName, @"tqdashboardUpdate\pluginupdate"));
 }
Example #4
0
 private string GetDashboardFolder()
 {
     return(MapPathUtil.MapPath("~/"));
 }