private boolean importDir(SVNDeltaGenerator deltaGenerator, File dir, String importPath,
boolean useGlobalIgnores, boolean ignoreUnknownNodeTypes, SVNDepth depth, ISVNEditor editor) throws SVNException {
checkCancelled();
File[] children = SVNFileListUtil.listFiles(dir);
boolean changed = false;
ISVNFileFilter filter = getCommitHandler() instanceof ISVNFileFilter ? (ISVNFileFilter) getCommitHandler() : null;
Collection ignores = useGlobalIgnores ? SVNStatusEditor.getGlobalIgnores(getOptions()) : null;
for (int i = 0; children != null && i < children.length; i++) {
File file = children[i];
if (SVNFileUtil.getAdminDirectoryName().equals(file.getName())) {
SVNEvent skippedEvent = SVNEventFactory.createSVNEvent(file, SVNNodeKind.NONE, null, SVNRepository.INVALID_REVISION, SVNEventAction.SKIP, SVNEventAction.COMMIT_ADDED, null, null);
handleEvent(skippedEvent, ISVNEventHandler.UNKNOWN);
continue;
}
if (filter != null && !filter.accept(file)) {
continue;
}
String path = importPath == null ? file.getName() : SVNPathUtil.append(importPath, file.getName());
if (useGlobalIgnores && SVNStatusEditor.isIgnored(ignores, file, "/" + path)) {
continue;