String path = PathUtil.append(parentPath, dirs[i].getName()); path = PathUtil.removeLeadingSlash(path); SVNDirectory dir = new SVNDirectory(this, PathUtil.append(parentPath, dirs[i].getName()), dirs[i]); if (dir.isVersioned()) { visitDirectories(path, dir, visitor); visitor.visit(path, dir);
if (entry.getKind() == SVNNodeKind.FILE) { continue; } File dir = new File(root.getRoot(), entry.getName()); if (dir.isDirectory() && entry.getKind() == SVNNodeKind.DIR) { String path = PathUtil.append(parentPath, dir.getName()); path = PathUtil.removeLeadingSlash(path); SVNDirectory svnDir = new SVNDirectory(this, PathUtil.append(parentPath, dir.getName()), dir); if (svnDir.isVersioned()) { visitDirectories(path, svnDir, visitor); visitor.visit(path, svnDir); }
    private void visitDirectories(String parentPath, SVNDirectory root, ISVNDirectoryVisitor visitor) throws SVNException {        File[] dirs = root.getRoot().listFiles();        for (int i = 0; dirs != null && i < dirs.length; i++) {            if (dirs[i].isFile()) {                continue;            }            String path = PathUtil.append(parentPath, dirs[i].getName());            path = PathUtil.removeLeadingSlash(path);            SVNDirectory dir = new SVNDirectory(this, PathUtil.append(parentPath, dirs[i].getName()), dirs[i]);            if (dir.isVersioned()) {                visitDirectories(path, dir, visitor);                visitor.visit(path, dir);            }        }    }