if (fileType == SVNFileType.DIRECTORY && depth.compareTo(SVNDepth.IMMEDIATES) >= 0) {
editor.addDir(path, null, -1);
changed |= true;
SVNEvent event = SVNEventFactory.createSVNEvent(file, SVNNodeKind.DIR, null, SVNRepository.INVALID_REVISION, SVNEventAction.COMMIT_ADDED, null, null, null);
handleEvent(event, ISVNEventHandler.UNKNOWN);
SVNDepth depthBelowHere = depth;
if (depth == SVNDepth.IMMEDIATES) {
depthBelowHere = SVNDepth.EMPTY;
}
importDir(deltaGenerator, file, path, useGlobalIgnores, ignoreUnknownNodeTypes,
depthBelowHere, editor);