SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN,
"path with name '{0}' is a file, you need a directory",
root);
throw new SVNException(err);
} else if (rootKind == SVNNodeKind.DIR) {
ISVNEditor editor = repository.getCommitEditor(message, null, true, null);
if (root.length() == 1 && root.charAt(0) == '/') {
addProcess(repository, editor, root, "", child);
} else {
String rootPath = root.substring(1);
addProcess(repository, editor, rootPath, null, child);