static public bool IsSubDirectory(string str1, string str2) { int len = str1.Length > str2.Length ? str2.Length : str1.Length; if (str1[0] != str2[0]) { return(false); } if (Presenter.IsEqual(str1, str2, len)) { return(false); } if (str1.Length <= str2.Length) { return(true); } return(false); }