path = new File(SVNPathUtil.validateFilePath(path.getAbsolutePath()));
if (!mkdir && climbUnversionedParents && path.getParentFile() != null) {
// check if parent is versioned. if not, add it.
SVNWCAccess wcAccess = createWCAccess();
try {
wcAccess.open(path.getParentFile(), false, 0);
} catch (SVNException e) {
if (e.getErrorMessage().getErrorCode() == SVNErrorCode.WC_NOT_DIRECTORY) {
doAdd(path.getParentFile(), false, false, climbUnversionedParents, false);
} else {
throw e;