internal string CanOpenDefaultBrowserOnStart(string root) { string[] data; int count = this.ExtractFromSettings("app openDefaultBrowserOnStartUp", out data); if (count != 0) { if (count > 1) { string fileName = data[1].Trim(); if (ServeMe.IsPathRooted(fileName)) { return(fileName); } else { var finalPath = UrlCombine(root, fileName.Replace("\\\\", "/").Replace("\\", "/")); return(finalPath); } } else { return(root); } } return(null); }
internal void WriteAllTextToFile(string fn, string txt) { if (WriteAllTextToFileIntercept != null) { WriteAllTextToFileIntercept(fn, txt); return; } if (ServeMe.IsPathRooted(fn)) { File.WriteAllText(fn, txt); } else { File.WriteAllText(Path.Combine(CurrentPath, fn), txt); } }