hippius 0.2.22__py3-none-any.whl → 0.2.23__py3-none-any.whl
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.
- {hippius-0.2.22.dist-info → hippius-0.2.23.dist-info}/METADATA +1 -1
- {hippius-0.2.22.dist-info → hippius-0.2.23.dist-info}/RECORD +6 -6
- hippius_sdk/__init__.py +1 -1
- hippius_sdk/ipfs.py +11 -3
- {hippius-0.2.22.dist-info → hippius-0.2.23.dist-info}/WHEEL +0 -0
- {hippius-0.2.22.dist-info → hippius-0.2.23.dist-info}/entry_points.txt +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
hippius_sdk/__init__.py,sha256=
|
1
|
+
hippius_sdk/__init__.py,sha256=6ONUk4AypnusMGzUTnYRedLDq_bL-T6Fiyx5eXz0w78,1474
|
2
2
|
hippius_sdk/cli.py,sha256=aqKOYSBSWt7UhcpFt7wf9yIPJ3bznpsJ6ehOnuZ4usI,18235
|
3
3
|
hippius_sdk/cli_assets.py,sha256=V3MX63QTiex6mCp0VDXQJ7cagm5v1s4xtsu8c1O4G_k,371
|
4
4
|
hippius_sdk/cli_handlers.py,sha256=TQNE9os87gRzRKLEO-SIwhFnBtEFMiaSESv-Bu7omfo,128909
|
@@ -12,12 +12,12 @@ hippius_sdk/db/migrations/20241201000001_create_key_storage_tables.sql,sha256=mi
|
|
12
12
|
hippius_sdk/db/setup_database.sh,sha256=bDeIiTnMuX0AYCdefAfEI1CyXho6A6kLzufsDZFSXpE,3118
|
13
13
|
hippius_sdk/db_utils.py,sha256=-x0rbN0as7Tn3PJPZBYCgreZe52FLH40ppA1TLxsg90,1851
|
14
14
|
hippius_sdk/errors.py,sha256=LScJJmawVAx7aRzqqQguYSkf9iazSjEQEBNlD_GXZ6Y,1589
|
15
|
-
hippius_sdk/ipfs.py,sha256=
|
15
|
+
hippius_sdk/ipfs.py,sha256=D4QYDTRZEJVF0OVdNYGn6MvWmb1A9Rm8MFBKZk9-GVs,94419
|
16
16
|
hippius_sdk/ipfs_core.py,sha256=eOOgLoyP9mvwndnCjldnTc7z94ImYCXY3nm7JU3e_Mo,12676
|
17
17
|
hippius_sdk/key_storage.py,sha256=oxfRRQXu8XVncUjhKJJ8rsc81JAkaj9MqZEwQa96idc,9474
|
18
18
|
hippius_sdk/substrate.py,sha256=-lIavQkfE6Kw2KzllH9IMgNkzl2d6vEmU3RmwKNJQvc,48093
|
19
19
|
hippius_sdk/utils.py,sha256=rJ611yvwKSyiBpYU3w-SuyQxoghMGU-ePuslrPv5H5g,7388
|
20
|
-
hippius-0.2.
|
21
|
-
hippius-0.2.
|
22
|
-
hippius-0.2.
|
23
|
-
hippius-0.2.
|
20
|
+
hippius-0.2.23.dist-info/METADATA,sha256=i5wAnryTHWL_nEq-LGR8KrFdvuVefhqwCVg2gmYP8Qw,30088
|
21
|
+
hippius-0.2.23.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
22
|
+
hippius-0.2.23.dist-info/entry_points.txt,sha256=bFAZjW3vndretf9-8s587jA2ebMVI7puhn_lVs8jPc8,149
|
23
|
+
hippius-0.2.23.dist-info/RECORD,,
|
hippius_sdk/__init__.py
CHANGED
@@ -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.
|
29
|
+
__version__ = "0.2.23"
|
30
30
|
__all__ = [
|
31
31
|
"HippiusClient",
|
32
32
|
"IPFSClient",
|
hippius_sdk/ipfs.py
CHANGED
@@ -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
|
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
|
-
|
515
|
-
|
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
|
File without changes
|
File without changes
|