private static void moveFileRenameWithSize(File sourceFile, File targetDir) throws IOException {
    final File targetFile = renameWithSize(sourceFile, targetDir);
    org.apache.commons.io.FileUtils.moveFile(
        sourceFile, targetFile, StandardCopyOption.REPLACE_EXISTING);

    LOGGER.info(
        RENAME_FILE_MESSAGE,
        sourceFile.getName(),
        targetFile.getName(),
        targetDir.getAbsolutePath());
  }
Transfer bytes to human-readable string. Copy from <a
href="https://stackoverflow.com/a/3758880">stackoverflow</a>.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/utils/FileUtils.java