} else if (path.isDirectory() && recursive) {
} else if (ftype == SVNFileType.DIRECTORY && recursive) {
    public void doAdd(File path, boolean force, boolean mkdir, boolean recursive) throws SVNException {    	if (mkdir && !path.exists()) {    		path.mkdirs();    	}    	if (!path.exists()) {    		// error    	}    	SVNWCAccess wcAccess = createWCAccess(path);    	try {    		wcAccess.open(true, recursive);    		String name = wcAccess.getTargetName();    		if ("".equals(name) && !force) {    			// error.    		}			SVNDirectory dir = wcAccess.getAnchor();    		if (path.isFile() || SVNFileUtil.isSymlink(path)) {    			addSingleFile(wcAccess, dir, name);    		} else if (path.isDirectory() && recursive) {	    		// add dir and recurse.    			addDirectory(wcAccess, wcAccess.getAnchor(), name, force);	    	} else {	    		// add single dir	    		dir.add(wcAccess.getTargetName(), true);	    	}    	} finally {    		wcAccess.close(true, recursive);    	}    }