if (entry.isScheduledForAddition()) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_OBSTRUCTED_UPDATE, "Failed to add directory ''{0}'': object of the same name already exists", path);
SVNErrorManager.error(err);
}
} else {
entry = parentArea.addEntry(name);
}
entry.setKind(SVNNodeKind.DIR);
entry.setAbsent(false);
entry.setDeleted(false);
parentArea.saveEntries(false);