@Override
    public Void call() {
      try (BufferedReader br = new BufferedReader(new FileReader(file))) {

        String line = br.readLine();
        while ((line = br.readLine()) != null) {
          String[] split = line.split(",");
          String path = split[0];
          checkPath(path);
        }
      } catch (IOException e) {
        LOGGER.error("Error reading file: {}", file.getName());
        throw new RuntimeException(e);
      }
      return null;
    }
Using multiple threads to check the paths in the files of the directory. the files are created
by export-csv.sh/export-csv.bat.
example/schema/src/main/java/org/apache/iotdb/schema/PathCheckExample.java