public static long fileSize(Path path) {
    try {
      return Files.size(path);
    } catch (IOException e) {
      return 0;
    }
  }
Returns the size of {@code path} as a file, or 0 if missing/inaccessible.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/FileUtils.java