editor.addDir(PathUtil.decode(path[i]), null, -1); editor.closeDir();
int count = 0; if (path[i] == null) { continue; } String currentPath = ""; for(StringTokenizer tokens = new StringTokenizer(path[i], "/"); tokens.hasMoreTokens();) { String token = tokens.nextToken(); currentPath = PathUtil.append(currentPath, token); if (tokens.hasMoreTokens()) { editor.openDir(PathUtil.decode(currentPath), -1); } else { editor.addDir(PathUtil.decode(currentPath), null, -1); } count++; } for(int j = 0; j < count; j++) { editor.closeDir(); }
    public void mkdir(String[] path, String message) throws ClientException {        if (path == null || path.length == 0) {            return;        }        if (isURL(path[0])) {            String root = PathUtil.getCommonRoot(path);            for(int i = 0; i < path.length; i++) {                String dir = path[i].substring(root.length());                dir = PathUtil.removeLeadingSlash(dir);                path[i] = dir;            }            ISVNEditor editor = null;            try {                SVNRepository repository = createRepository(root);                editor = repository.getCommitEditor(message, null);                editor.openRoot(-1);                for(int i = 0; i < path.length; i++) {                    editor.addDir(PathUtil.decode(path[i]), null, -1);                    editor.closeDir();                }                editor.closeDir();                editor.closeEdit();            } catch (SVNException e) {                if (editor != null) {                    try {                        editor.abortEdit();                    } catch (SVNException inner) {}                                    }                throwException(e);            }        } else {            try {            	String root = PathUtil.getFSCommonRoot(path);                ISVNWorkspace ws = createWorkspace(root);                ws.addWorkspaceListener(new LocalWorkspaceListener(myNotify, ws));                for(int i = 0; i < path.length; i++) {                    ws.add(SVNUtil.getWorkspacePath(ws, path[i]), true, false);                }            } catch (SVNException e) {                throwException(e);            }        }    }