public static FileStore getFileStore(final Path path) {
    Path absolutePath = path.toAbsolutePath();
    IOException exception = null;
    while (absolutePath != null) {
      try {
        return Files.getFileStore(absolutePath);
      } catch (IOException e) {
        exception = e;
        absolutePath = absolutePath.getParent();
      }
    }
    throw new UncheckedIOException("Cannot get file store for " + path, exception);
  }
Returns the {@link FileStore} for {@code path}, or its nearest parent directory if it does not exist yet.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/FileUtils.java