SVNErrorManager.error(0, null);
SVNErrorManager.error("svn: Failed to add directory '" + path + "': object of the same name as the administrative directory");
    public void addDir(String path, String copyFromPath, long copyFromRevision) throws SVNException {        path = PathUtil.removeLeadingSlash(path);        path = PathUtil.removeTrailingSlash(path);        SVNDirectory parentDir = myCurrentDirectory.getDirectory();        myCurrentDirectory = createDirectoryInfo(myCurrentDirectory, path, true);                String name = PathUtil.tail(path);        File file = parentDir.getFile(name, false);        if (file.exists()) {            SVNErrorManager.error("file '" + file.getAbsolutePath() + "' already exists");            SVNErrorManager.error(0, null);        } else if (".svn".equals(name)) {            SVNErrorManager.error(0, null);        }         SVNEntry entry = parentDir.getEntries().getEntry(name);        if (entry != null) {            if (entry.isScheduledForAddition()) {                SVNErrorManager.error(0, null);            }                    } else {            entry = parentDir.getEntries().addEntry(name);        }        entry.setKind(SVNNodeKind.DIR);        entry.setAbsent(false);        entry.setDeleted(false);        parentDir.getEntries().save(true);                SVNDirectory dir = parentDir.createChildDirectory(name, myCurrentDirectory.URL, myTargetRevision);        if (dir == null) {            SVNErrorManager.error(0, null);        }        dir.lock();        myWCAccess.svnEvent(SVNEvent.createUpdateAddEvent(myWCAccess, parentDir, entry));    }