public static File[] listAllCheckpointFiles(File dir) {
    return dir.listFiles(CheckpointFileUtils::checkpointFilenameFilter);
  }
List all .checkpoint files in the directory.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/wal/utils/CheckpointFileUtils.java