We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e38c1ca commit 2fb9083Copy full SHA for 2fb9083
src/zarr/core/group.py
@@ -2967,12 +2967,15 @@ async def create_nodes(
2967
create_tasks.extend(
2968
_prepare_save_metadata(store_path.store, f"{store_path.path}/{key}", value)
2969
)
2970
-
+ if store_path.path == "":
2971
+ root = "/"
2972
+ else:
2973
+ root = store_path.path
2974
created_keys = []
2975
async with ctx:
2976
for coro in asyncio.as_completed(create_tasks):
2977
created_key = await coro
- relative_path = PurePosixPath(created_key).relative_to(store_path.path)
2978
+ relative_path = PurePosixPath(created_key).relative_to(root)
2979
created_keys.append(str(relative_path))
2980
# convert /foo/bar/baz/.zattrs to bar/baz
2981
node_name = str(relative_path.parent)
0 commit comments