code: public static String getNewResourceName(CmsObject cms, String fileName, String folder) {
  
          String newResname = CmsResource.getName(fileName.replace('\\', '/'));
          newResname = cms.getRequestContext().getFileTranslator().translateResource(newResname);
          newResname = folder + newResname;
          return newResname;
      }
docs: Returns the VFS path for the given filename and folder.<p>
  
  @param cms the cms object
  @param fileName the filename to combine with the folder
  @param folder the folder to combine with the filename
  
  @return the VFS path for the given filename and folder