private static long totalSize(Stream<Path> files) {
      return files.mapToLong(p -> p.toFile().length()).sum();
    }
Whether the path denotes an open segment under active writing progress
iotdb-core/consensus/src/main/java/org/apache/iotdb/consensus/ratis/DiskGuardian.java