info.URL = PathUtil.append(parent.URL, name);
info.URL = PathUtil.append(parent.URL, PathUtil.encode(name));
    private SVNDirectoryInfo createDirectoryInfo(SVNDirectoryInfo parent, String path, boolean added) throws SVNException {        SVNDirectoryInfo info = new SVNDirectoryInfo(path);        info.Parent = parent;        info.IsAdded = added;        String name = path != null ? PathUtil.tail(path) : "";        if (mySwitchURL == null) {            SVNDirectory dir = added ? null : info.getDirectory();            if (dir != null && dir.getEntries().getEntry("") != null) {                info.URL = dir.getEntries().getEntry("").getURL();            }            if (info.URL == null && parent != null) {                info.URL = PathUtil.append(parent.URL, name);            } else if (info.URL == null && parent == null) {                info.URL = myTargetURL;            }        } else {            if (parent == null) {                info.URL = myTarget == null ? mySwitchURL : PathUtil.removeTail(mySwitchURL);            } else {                if (myTarget != null && parent.Parent == null) {                    info.URL = mySwitchURL;                } else {                    info.URL = PathUtil.append(parent.URL, PathUtil.encode(name));                }            }        }        info.RefCount = 1;        if (info.Parent != null) {            info.Parent.RefCount++;        }        return info;    }