docs: public static String getBaseName(String fileName, String suffix) {
      String[] elts = fileName.split("/");
      String lastElt = elts[elts.length - 1];
      if (lastElt.endsWith(suffix)) {
        lastElt = lastElt.substring(0, lastElt.length() - suffix.length());
      }
      return lastElt;
    }