String (final String parent, final String subpath) { String convParent = FileUtil.toSystemIndependentName(parent); String convPath = FileUtil.toSystemIndependentName(subpath); String withSlash = StringUtil.trimEnd(convParent, "/") + "/" + StringUtil.trimStart(convPath, "/"); return SystemInfo.isFileSystemCaseSensitive ? withSlash : StringUtil.toUpperCase(withSlash); }