if (!myIsForce && myCurrentDirectory.isFile()) {
SVNFileType dirType = SVNFileType.getType(myCurrentDirectory); if (dirType == SVNFileType.FILE || dirType == SVNFileType.SYMLINK) {
    public void addDir(String path, String copyFromPath, long copyFromRevision)            throws SVNException {        myCurrentDirectory = new File(myRoot, path);        myCurrentPath = path;        if (!myIsForce && myCurrentDirectory.isFile()) {            // export is obstructed.            SVNErrorManager.error("svn: Failed to add directory '" + myCurrentDirectory + "': file of the same name already exists; use 'force' to overwrite exsiting file");        } else if (myIsForce && myCurrentDirectory.exists()) {            SVNFileUtil.deleteAll(myCurrentDirectory);        }        if (!myCurrentDirectory.exists()) {            if (!myCurrentDirectory.mkdirs()) {                SVNErrorManager.error("svn: Failed to add directory '" + myCurrentDirectory + "'");            }        }        myEventDispatcher.handleEvent(SVNEventFactory.createExportAddedEvent(                myRoot, myCurrentDirectory, SVNNodeKind.DIR), ISVNEventHandler.UNKNOWN);    }