public static String getFileName(String path) {
    return path == null ? null : new File(path).getName();
  }
Convert size to a different unit, ensuring that the converted value is > 1
amoro-common/src/main/java/org/apache/amoro/utils/CommonUtil.java