private static @Nullable Path parent(Path path) {
    var parent = path.getParent();
    if (parent == null && !isLocalFs(path)) {
      try {
        return Path.of(storeName(path));
      }
      catch (Exception e) {
        LOG.warn(e);
      }
    }
    return parent;
  }
private static @Nullable Path parent(Path path)