code: protected static String getCmsPath(String path) {
  
          String slashPath = path.replace('\\', '/');
  
          // split path into components, translate each of them separately, then combine them again at the end
          String[] segments = slashPath.split("/");
          List<String> nonEmptySegments = new ArrayList<String>();
          for (String segment : segments) {
              if (segment.length() > 0) {
                  String translatedSegment = "*".equals(segment)
                  ? "*"
                  : OpenCms.getResourceManager().getFileTranslator().translateResource(segment);
                  nonEmptySegments.add(translatedSegment);
              }
          }
          String result = "/" + Joiner.on("/").join(nonEmptySegments);
          return result;
      }
docs: Converts a CIFS path to an OpenCms path by converting backslashes to slashes and translating special characters in the file name.<p>
  
  @param path the path to transform
  @return the OpenCms path for the given path