code: public static String getFileNameNoSuffix(String fileName) {
      int index = fileName.lastIndexOf(".");
      if (index != -1) {
        return fileName.substring(0, index);
      }
      return fileName;
    }
docs: 去掉后缀名