text: public static NGit.Treewalk.Filter.PathFilter Create(string path){while (path.EndsWith("/")){path = Sharpen.Runtime.Substring(path, 0, path.Length - 1);}if (path.Length == 0){throw new ArgumentException(JGitText.Get().emptyPathNotPermitted);}return new NGit.Treewalk.Filter.PathFilter(path);}