public static PathFilter create(String path) {while (path.endsWith("/")) path = path.substring(0, path.length() - 1);if (path.length() == 0)throw new IllegalArgumentException(JGitText.get().emptyPathNotPermitted);return new PathFilter(path);}
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);}