importDir(rootFile, file, path, recursive, editor);
importDir(rootFile, file, path, useGlobalIgnores, recursive, editor);
    private boolean importDir(File rootFile, File dir, String importPath, boolean recursive, ISVNEditor editor) throws SVNException {        checkCancelled();        File[] children = dir.listFiles();        boolean changed = false;        for (int i = 0; children != null && i < children.length; i++) {            File file = children[i];            if (SVNFileUtil.getAdminDirectoryName().equals(file.getName())) {                SVNEvent skippedEvent = SVNEventFactory.createSkipEvent(                        rootFile, file, SVNEventAction.SKIP, SVNNodeKind.NONE);                handleEvent(skippedEvent, ISVNEventHandler.UNKNOWN);                continue;            }            if (getOptions().isIgnored(file.getName())) {                continue;            }            String path = importPath == null ? file.getName() : SVNPathUtil.append(importPath, file.getName());            SVNFileType fileType = SVNFileType.getType(file);            if (fileType == SVNFileType.DIRECTORY && recursive) {                editor.addDir(path, null, -1);                changed |= true;                SVNEvent event = SVNEventFactory.createCommitEvent(rootFile,                        file, SVNEventAction.COMMIT_ADDED, SVNNodeKind.DIR,                        null);                handleEvent(event, ISVNEventHandler.UNKNOWN);                importDir(rootFile, file, path, recursive, editor);                editor.closeDir();            } else {                changed |= importFile(rootFile, file, fileType, path, editor);            }        }        return changed;    }