@@ -173,7 +173,7 @@ async def consolidate_metadata(
173173 store_path = await make_store_path (store )
174174
175175 if path is not None :
176- store_path = store_path / path
176+ store_path /= path
177177
178178 group = await AsyncGroup .open (store_path , zarr_format = zarr_format , use_consolidated = False )
179179 group .store_path .store ._check_writable ()
@@ -294,7 +294,7 @@ async def open(
294294 store_path = await make_store_path (store , mode = mode , storage_options = storage_options )
295295
296296 if path is not None :
297- store_path = store_path / path
297+ store_path /= path
298298
299299 if "shape" not in kwargs and mode in {"a" , "w" , "w-" }:
300300 try :
@@ -403,7 +403,7 @@ async def save_array(
403403 mode = kwargs .pop ("mode" , None )
404404 store_path = await make_store_path (store , mode = mode , storage_options = storage_options )
405405 if path is not None :
406- store_path = store_path / path
406+ store_path /= path
407407 new = await AsyncArray .create (
408408 store_path ,
409409 zarr_format = zarr_format ,
@@ -584,7 +584,7 @@ async def group(
584584
585585 store_path = await make_store_path (store , mode = mode , storage_options = storage_options )
586586 if path is not None :
587- store_path = store_path / path
587+ store_path /= path
588588
589589 if chunk_store is not None :
590590 warnings .warn ("chunk_store is not yet implemented" , RuntimeWarning , stacklevel = 2 )
@@ -699,7 +699,7 @@ async def open_group(
699699
700700 store_path = await make_store_path (store , mode = mode , storage_options = storage_options )
701701 if path is not None :
702- store_path = store_path / path
702+ store_path /= path
703703
704704 if attributes is None :
705705 attributes = {}
@@ -885,7 +885,7 @@ async def create(
885885
886886 store_path = await make_store_path (store , mode = mode , storage_options = storage_options )
887887 if path is not None :
888- store_path = store_path / path
888+ store_path /= path
889889
890890 return await AsyncArray .create (
891891 store_path ,
@@ -1073,7 +1073,7 @@ async def open_array(
10731073 mode = kwargs .pop ("mode" , None )
10741074 store_path = await make_store_path (store , mode = mode )
10751075 if path is not None :
1076- store_path = store_path / path
1076+ store_path /= path
10771077
10781078 zarr_format = _handle_zarr_version_or_format (zarr_version = zarr_version , zarr_format = zarr_format )
10791079
0 commit comments