docs: private static String basename(final File file) {
          final String name = file.getName();
          if(name.contains(".")) {
              return name.substring(0, name.lastIndexOf("."));
          }
          return name;
      }