hippius 0.2.22__tar.gz → 0.2.23__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {hippius-0.2.22 → hippius-0.2.23}/PKG-INFO +1 -1
  2. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/__init__.py +1 -1
  3. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/ipfs.py +11 -3
  4. {hippius-0.2.22 → hippius-0.2.23}/pyproject.toml +1 -1
  5. {hippius-0.2.22 → hippius-0.2.23}/README.md +0 -0
  6. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/cli.py +0 -0
  7. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/cli_assets.py +0 -0
  8. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/cli_handlers.py +0 -0
  9. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/cli_parser.py +0 -0
  10. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/cli_rich.py +0 -0
  11. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/client.py +0 -0
  12. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/config.py +0 -0
  13. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/db/README.md +0 -0
  14. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/db/env.db.template +0 -0
  15. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/db/migrations/20241201000001_create_key_storage_tables.sql +0 -0
  16. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/db/setup_database.sh +0 -0
  17. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/db_utils.py +0 -0
  18. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/errors.py +0 -0
  19. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/ipfs_core.py +0 -0
  20. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/key_storage.py +0 -0
  21. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/substrate.py +0 -0
  22. {hippius-0.2.22 → hippius-0.2.23}/hippius_sdk/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hippius
3
- Version: 0.2.22
3
+ Version: 0.2.23
4
4
  Summary: Python SDK and CLI for Hippius blockchain storage
5
5
  Home-page: https://github.com/thenervelab/hippius-sdk
6
6
  Author: Dubs
@@ -26,7 +26,7 @@ from hippius_sdk.config import (
26
26
  from hippius_sdk.ipfs import IPFSClient, S3PublishResult, S3DownloadResult
27
27
  from hippius_sdk.utils import format_cid, format_size, hex_to_ipfs_cid
28
28
 
29
- __version__ = "0.2.22"
29
+ __version__ = "0.2.23"
30
30
  __all__ = [
31
31
  "HippiusClient",
32
32
  "IPFSClient",
@@ -509,10 +509,18 @@ class IPFSClient:
509
509
  try:
510
510
  ls_result = await self.client.ls(cid)
511
511
  if isinstance(ls_result, dict) and ls_result.get("Objects", []):
512
- # Check if we have Links in the object, which means it's a directory
512
+ # Check if we have Links with non-empty names, which indicates a directory
513
+ # Links with empty names are file chunks, not directory entries
513
514
  for obj in ls_result["Objects"]:
514
- if obj.get("Links", []):
515
- is_directory = True
515
+ links = obj.get("Links", [])
516
+ if links:
517
+ # Check if any link has a non-empty name (directory entry)
518
+ # Links with empty names are file chunks, not directory entries
519
+ has_named_links = any(
520
+ link.get("Name", "").strip() for link in links
521
+ )
522
+ if has_named_links:
523
+ is_directory = True
516
524
  break
517
525
  except Exception:
518
526
  # If ls check fails, continue treating as a regular file
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "hippius"
3
- version = "0.2.22"
3
+ version = "0.2.23"
4
4
  description = "Python SDK and CLI for Hippius blockchain storage"
5
5
  authors = ["Dubs <dubs@dubs.rs>"]
6
6
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes