public static String removeFileExtension(final String fileName) {
    final int index = fileName.lastIndexOf(".");
    return index < 1 ? fileName : fileName.substring(0, index);
  }
BinDiff-specific file name and filesystem utility methods.
java/ui/src/main/java/com/google/security/zynamics/bindiff/utils/BinDiffFileUtils.java