public int CompareTo(object obj) { HtaccessFolder folder = obj as HtaccessFolder; if (folder != null) { return(String.CompareOrdinal(this.Path.ToLower(), folder.Path.ToLower())); } return(0); }
public static HtaccessFolder CreateHttpdConfFolder(string path) { HtaccessFolder folder = new HtaccessFolder { ContentPath = path, Path = HTTPD_CONF_FILE }; folder.ReadHttpdConf(); return(folder); }
public static HtaccessFolder CreateHtaccessFolder(string siteRootPath, string folderPath) { HtaccessFolder folder = new HtaccessFolder { SiteRootPath = siteRootPath, Path = folderPath, ContentPath = System.IO.Path.Combine(siteRootPath, folderPath) }; folder.ReadHtaccess(); return(folder); }