private static string ApplyCygpathForClient(string path) { var config = ConfigurationLoader.Config; if (config.UseCygpath.GetValueOrDefault(config.ClientPathMode == PathMode.Cygwin)) { path = CygPathWrapper.GetCygpath(path, config.ClientPathMode.GetValueOrDefault(PathMode.Unix)); } return(path); }
public static string ApplyPathReplacementsForClient(this string path) { if (ConfigurationLoader.Config.UseCygpath.GetValueOrDefault(false)) { path = CygPathWrapper.GetCygpath(path, true); } foreach (var pathReplacement in ConfigurationLoader.Config.PathReplacements) { path = path.Replace(pathReplacement.To, pathReplacement.From); } return(path); }